import React from 'react' export default function Checkbox({ id, label, showLabel, showOther, inline, options, defaults, hint, showHint, tag, required, errorEmptyData }) { const checkboxes = options.map( (label, index) => { return (
e } />
) } ).concat( showOther ? [(
e } />
)] : [] ) return ( <> { showLabel ? (
{ label }
) : null } { inline ? (
{ checkboxes }
) : checkboxes } { showHint ? (
{ hint }
) : null } ) }