mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
26 lines
426 B
TypeScript
26 lines
426 B
TypeScript
![]() |
import { Paper } from "@material-ui/core";
|
||
|
|
||
|
function CenteredPaper({
|
||
|
children,
|
||
|
}: {
|
||
|
children: React.ReactNode;
|
||
|
}): JSX.Element {
|
||
|
return (
|
||
|
<div>
|
||
|
<Paper
|
||
|
elevation={0}
|
||
|
style={{
|
||
|
display: "flex",
|
||
|
justifyContent: "center",
|
||
|
alignItems: "center",
|
||
|
padding: 36,
|
||
|
}}
|
||
|
>
|
||
|
{children}
|
||
|
</Paper>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default CenteredPaper;
|