2022-04-03 15:19:59 +00:00
|
|
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
|
|
import Dialog from "@mui/material/Dialog";
|
|
|
|
import { useTheme } from "@mui/material/styles";
|
|
|
|
|
|
|
|
function ArtModel({ children, open, onClose }) {
|
2023-06-12 08:03:13 +00:00
|
|
|
const theme = useTheme();
|
|
|
|
const fullScreen = useMediaQuery(theme.breakpoints.down("md"));
|
2022-04-03 15:19:59 +00:00
|
|
|
|
2023-06-12 08:03:13 +00:00
|
|
|
return (
|
|
|
|
<Dialog
|
|
|
|
open={open}
|
|
|
|
onClose={onClose}
|
|
|
|
fullScreen={fullScreen}
|
|
|
|
aria-labelledby="responsive-dialog-title"
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</Dialog>
|
|
|
|
);
|
2022-04-03 15:19:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ArtModel;
|