All checks were successful
continuous-integration/drone/push Build is passing
39 lines
797 B
TypeScript
39 lines
797 B
TypeScript
import { Typography } from "@mui/material";
|
|
import React, { PropsWithChildren } from "react";
|
|
|
|
export function VirtWebRouteContainer(
|
|
p: {
|
|
label: string;
|
|
actions?: React.ReactElement;
|
|
} & PropsWithChildren
|
|
): React.ReactElement {
|
|
return (
|
|
<div
|
|
style={{
|
|
margin: "50px",
|
|
flex: "1",
|
|
flexGrow: 1,
|
|
flexShrink: 0,
|
|
flexBasis: 0,
|
|
minWidth: 0,
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
justifyContent: "space-between",
|
|
alignItems: "center",
|
|
marginBottom: "20px",
|
|
}}
|
|
>
|
|
<Typography variant="h4">{p.label}</Typography>
|
|
{p.actions ?? <></>}
|
|
</div>
|
|
|
|
{p.children}
|
|
</div>
|
|
);
|
|
}
|