1 import Checkbox from '@proton/components/components/input/Checkbox';
2 import clsx from '@proton/utils/clsx';
11 onToggle: (ID: string) => void;
14 const NameTableCell = ({ name, contactID, highlightedID, checked, deleted, greyedOut, onToggle }: Props) => {
15 const handleToggle = () => onToggle(contactID);
18 <div className="flex flex-nowrap items-center">
21 onChange={handleToggle}
22 className={`flex items-center shrink-0 mr-2 ${deleted ? 'visibility-hidden' : ''}`}
23 data-testid="merge-model:name-checkbox"
30 greyedOut && 'color-weak',
31 contactID === highlightedID && 'text-bold',
40 export default NameTableCell;