import { MutableRefObject, ReactNode, forwardRef } from 'react'; // Styled import { StyledBody, StyledDialog, StyledTitle } from './styled'; // Type import { Nullable } from '../../globals/types'; export interface IDialogProps { title?: string; children?: ReactNode; onClose?: () => void; ref?: MutableRefObject>; } const Dialog = forwardRef( (props: IDialogProps, ref) => { const { title, children, onClose } = props; return ( {title} {children} ); } ); export default Dialog;