VirtWeb/virtweb_frontend/src/widgets/VirtWebRouteContainer.tsx

19 lines
390 B
TypeScript
Raw Normal View History

2023-09-05 11:19:25 +00:00
import { Typography } from "@mui/material";
import { PropsWithChildren } from "react";
export function VirtWebRouteContainer(
p: {
label: string;
} & PropsWithChildren
): React.ReactElement {
return (
<div style={{ margin: "50px" }}>
<Typography variant="h4" style={{ marginBottom: "20px" }}>
{p.label}
</Typography>
{p.children}
</div>
);
}