import React from 'react' ; import styles from './Button.module.scss' ; interface ButtonProps { onClick ? : VoidFunction ; text : string ; } const Button = ( { text , onClick } ) => { return ( < div > < button onClick = { onClick } className = { styles . Button } type = "button" > { text } < /button> < /div>); } ; export default Button ;