diff --git a/src/components/ErrorModal.tsx b/src/components/ErrorModal.tsx index e4b9a9087..a36f11270 100644 --- a/src/components/ErrorModal.tsx +++ b/src/components/ErrorModal.tsx @@ -2,11 +2,15 @@ import { Button } from "./Button"; import { Modal, ModalFooter, ModalPropTypes } from "./Modal"; import { Error } from "./Error"; -type ErrorModalProps = React.PropsWithChildren>; +type ErrorModalProps = React.PropsWithChildren>; export const ErrorModal = (props: ErrorModalProps) => { - return - + const { children, heading, ...modalProps } = props; + + return + + {children} + ; };