import React , { FunctionComponent , HTMLAttributes } from "react" ; import styles from "./ModalHeader.css" ; const ModalHeader = ( { children , ... rest } ) => { return ( < h2 { ... rest } className = { styles . root } > { children } < /h2>); } ; export default ModalHeader ;