import React , { FC } from "react" ; type Props = JSX . IntrinsicElements [ "button" ] & { primary ? : boolean ; } ; const Button = ( { className , children , primary , ... props } ) => ( < button className = { `button ${ primary ? "button--primary" : "" } ${ className }` } { ... props } > { children } < /button>); export default Button ;