import React from 'react' ; import { Box } from '../../primitives' ; import { CheckIcon } from '../../primitives/Icon/Icons' ; const SizedIcon = ( { icon , _icon , isChecked , } ) => { return isChecked ? ( icon ? ( React . cloneElement ( icon , { ... _icon , } ) ) : ( < CheckIcon { ... _icon } / > ) ) : ( < Box { ... _icon } / > ) ; } ; export default SizedIcon ;