import React from 'react'; // import PropTypes from 'prop-types'; import { forwardRef } from 'react'; // @mui import { useTheme } from '@mui/material/styles'; import { StyledPopup } from './styles'; import { Box,Grid, Typography } from '@mui/material'; import {RxCross1} from "react-icons/rx"; interface PopupModalProps{ isOpen ?: boolean, onClose ?: () => void, sx?:any, children ?: React.ReactNode, id: string, header?: string } const Popup = forwardRef(({children,onClose, isOpen=false, sx,header, ...other}:PopupModalProps, ref) => { const theme = useTheme(); const defaultStyles = { position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', bgcolor: 'white', border: "none", borderRadius: "4px", boxSizing: "none", width: "60%", maxHeight: "75%", overflow: "auto" } const styles = (sx!==undefined && Object.keys(sx).length>0) ? sx : defaultStyles; return ( {/* {header} */} {children} ) }) export default Popup