import { HTMLAttributes } from 'react' ; export type SubTitleProps = HTMLAttributes < HTMLHeadingElement > ; const SubTitle = ( { children , ... rest } ) => < h2 { ... rest } > { children } < /h2>; export default SubTitle ;