// 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; selectionHelpers: TSelectionHelper; }; export const MultipleSelectGroupAction: React.FC = (props) => { const { className, disabled = false, groupID, selectionHelpers } = props; // derived values const groupSelectionStatus = selectionHelpers.isGroupSelected(groupID); return ( selectionHelpers.handleGroupClick(groupID)} checked={groupSelectionStatus === "complete"} indeterminate={groupSelectionStatus === "partial"} disabled={disabled} /> ); };