import React , { FC } from "react" ; interface Props { onClick : ( ) => void ; primary ? : boolean ; title ? : string ; } const IconButton = ( { children , primary , ... props } ) => ( < button className = { `button--icon ${ primary ? "button--primary" : "" }` } { ... props } > { children } < /button>); export default IconButton ;