import React from "react"; import { useTheme } from "styled-components"; import Heading from "../../components/Heading/Heading"; import getThemeValue from "../../util/getThemeValue"; import { ModalBody, ModalHeader, ModalTitle, ModalContainer, ModalCloseButton, ModalBackButton } from "./styles"; import { ModalProps } from "./types"; const Modal: React.FC = ({ title, onDismiss, onBack, children, hideCloseButton = false, bodyPadding = "24px", headerBackground = "transparent", minWidth = "320px", ...props }) => { const theme = useTheme(); return ( {onBack && } {title} {!hideCloseButton && } {children} ); }; export default Modal;