mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
40 lines
798 B
JavaScript
40 lines
798 B
JavaScript
import React from "react";
|
|
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
box: {
|
|
width: "100%",
|
|
position: "relative",
|
|
},
|
|
backdrop: {
|
|
position: "absolute",
|
|
zIndex: 1,
|
|
},
|
|
paper: {
|
|
width: "100%",
|
|
height: "100%",
|
|
},
|
|
}));
|
|
|
|
export const AppContent = ({
|
|
children,
|
|
style,
|
|
backdrop,
|
|
onClickBackdrop,
|
|
...props
|
|
}) => {
|
|
const classes = useStyles();
|
|
return (
|
|
<Box flexGrow={1} className={classes.box} {...props}>
|
|
<Paper square px={2} pt={1} elevation={0} className={classes.paper}>
|
|
<Backdrop
|
|
className={classes.backdrop}
|
|
open={backdrop || false}
|
|
onClick={onClickBackdrop}
|
|
></Backdrop>
|
|
{children}
|
|
</Paper>
|
|
</Box>
|
|
);
|
|
};
|