mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
import { TSelectionHelper, TSelectionSnapshot, useMultipleSelect } from "@/hooks/use-multiple-select";
|
|
|
|
type Props = {
|
|
children: (helpers: TSelectionHelper, snapshot: TSelectionSnapshot) => React.ReactNode;
|
|
groups: string[];
|
|
};
|
|
|
|
export const MultipleSelectGroup: React.FC<Props> = (props) => {
|
|
const { children, groups } = props;
|
|
|
|
const { helpers, snapshot } = useMultipleSelect({
|
|
groups,
|
|
});
|
|
|
|
return <>{children(helpers, snapshot)}</>;
|
|
};
|