2023-04-17 02:27:22 +00:00
|
|
|
import * as React from 'react';
|
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
import Drawer from '@mui/material/Drawer';
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
import {SxProps, Theme} from "@mui/material";
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
outerContainerSx?: SxProps<Theme>;
|
|
|
|
children?: React.ReactNode;
|
2023-04-17 22:02:46 +00:00
|
|
|
isOpen: boolean;
|
|
|
|
openHC: (arg0: boolean) => void
|
2023-04-17 02:27:22 +00:00
|
|
|
}
|
|
|
|
|
2023-04-17 22:02:46 +00:00
|
|
|
export default function DrawerNewField({outerContainerSx: sx, children, isOpen, openHC }: Props) {
|
2023-04-17 02:27:22 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Drawer
|
|
|
|
anchor='right'
|
2023-04-17 22:02:46 +00:00
|
|
|
open={isOpen}
|
|
|
|
onClose={() => openHC(false)}
|
2023-04-17 02:27:22 +00:00
|
|
|
>
|
|
|
|
<Box
|
|
|
|
sx={{ width: 450 }}
|
|
|
|
role="presentation"
|
|
|
|
>
|
|
|
|
|
|
|
|
{children}
|
|
|
|
</Box>
|
|
|
|
</Drawer>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|