import { observer } from "mobx-react"; // hooks import { TSelectionHelper, useMultipleSelect } from "@/hooks/use-multiple-select"; type Props = { children: (helpers: TSelectionHelper) => React.ReactNode; containerRef: React.MutableRefObject; disabled?: boolean; entities: Record; // { groupID: entityIds[] } }; export const MultipleSelectGroup: React.FC = observer((props) => { const { children, containerRef, disabled = false, entities } = props; const helpers = useMultipleSelect({ containerRef, disabled, entities, }); return <>{children(helpers)}; }); MultipleSelectGroup.displayName = "MultipleSelectGroup";