import React from 'react' ; import { ButtonProps } from './types' ; export { ButtonProps } ; param props returns export const Button = ( props ) => { const { text , onClick } = props ; return < button onClick = { onClick } > { text } < /button>; } ;