import React from 'react' ; import Checkbox from '../Checkbox' ; import ButtonControlLabel , { ButtonControlLabelProps } from '../ButtonControlLabel' ; export interface Props extends Omit < ButtonControlLabelProps , 'control' > { testIds ? : { checkbox ? : string ; } ; } const ButtonCheckbox = ( { testIds , ... props } ) => { return ( < ButtonControlLabel { ... props } control = { < Checkbox data - testid = { testIds ?. checkbox } />}/ > ) ; } ; export default ButtonCheckbox ;