import classNames from 'classnames'; interface SimpleComponentProps { className?: string; children?: React.ReactNode; } interface ModalShellComponent extends React.FC { Body: React.FC; Actions: React.FC; } export const ModalShell: ModalShellComponent = ({ children, className }) => { return (
{children}
); }; const ModalShellBody: ModalShellComponent['Body'] = ({ children, className, }) => { return (
{children}
); }; const ModalShellActions: ModalShellComponent['Actions'] = ({ children, className, }) => { return (
{children}
); }; ModalShell.Body = ModalShellBody; ModalShell.Actions = ModalShellActions;