export interface ModalProps { title: string; actions?: JSX.Element[]; children: React.ReactNode; } export const Modal = ({ title, actions, children, }: ModalProps): JSX.Element => { return (

{title}

{actions && (
{actions.map((action) => action)}
)}
{children}
); };