// ui import { Checkbox } from "@plane/ui"; // helpers import { cn } from "@/helpers/common.helper"; // hooks import { TSelectionHelper } from "@/hooks/use-multiple-select"; type Props = { className?: string; disabled?: boolean; groupId: string; id: string; selectionHelpers: TSelectionHelper; }; export const MultipleSelectEntityAction: React.FC = (props) => { const { className, disabled = false, groupId, id, selectionHelpers } = props; // derived values const isSelected = selectionHelpers.getIsEntitySelected(id); if (selectionHelpers.isSelectionDisabled) return null; return ( { e.stopPropagation(); selectionHelpers.handleEntityClick(e, id, groupId); }} checked={isSelected} data-entity-group-id={groupId} data-entity-id={id} disabled={disabled} readOnly /> ); };