19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
|
import { Paper, Typography } from "@mui/material";
|
||
|
import { PropsWithChildren } from "react";
|
||
|
|
||
|
export function VirtWebPaper(
|
||
|
p: { label: string } & PropsWithChildren
|
||
|
): React.ReactElement {
|
||
|
return (
|
||
|
<Paper elevation={2} style={{ padding: "10px" }}>
|
||
|
<Typography
|
||
|
variant="subtitle1"
|
||
|
style={{ marginBottom: "10px", fontWeight: "bold" }}
|
||
|
>
|
||
|
{p.label}
|
||
|
</Typography>
|
||
|
{p.children}
|
||
|
</Paper>
|
||
|
);
|
||
|
}
|