"use client"; import { FC } from "react"; import { Box, Dialog as InternalDialog, DialogActions, DialogContent, DialogTitle, } from "@mui/material"; import { typography, colors } from "../styles/theme"; type DialogDetailsProps = { title: string; children: React.ReactNode; buttons?: React.ReactNode; }; const DialogDetails: FC = ({ title, children, buttons, }) => { const { h4 } = typography; const { lightGray, mediumGray, darkMediumGray, white, almostBlack } = colors; return ( <> {title} {children} {buttons && ( {buttons} )} ); }; type DialogProps = { title: string; open: boolean; onClose?: Function; size?: "xs" | "sm" | "md" | "lg" | "xl"; formAction?: any; buttons?: React.ReactNode; children?: any; }; export const Dialog: FC = ({ title, open, size = "md", onClose, formAction, buttons, children, }) => { return ( {formAction ? (
{children}
) : ( {children} )}
); };