import styles from "./IconButton.module.css" ; type Props = { onClick : ( ) => void ; children : React . ReactNode ; isActive ? : boolean ; } ; export default function IconButton ( { onClick , children , isActive } ) { return ( < button className = { `${ styles . button } ${ isActive ? styles . button_active : "" }` } onClick = { onClick } > { children } < /button>); }