import { Separator } from '../../../helperComponents'; import { useGroupItemSelection, useRenderItems } from '../hooks'; import { CommonFlattenProps, FlattenGroupSelectListItem } from '../types'; type GroupSelectItemProps = Omit & CommonFlattenProps; export function GroupSelectItem({ label, truncate, divider, items, mode, id, itemRef, allChildIds, selectButtonLabel, }: GroupSelectItemProps) { const { indeterminate, checked, handleOnSelect } = useGroupItemSelection({ items, id, disabled: false, allChildIds, }); const itemsJSX = useRenderItems(items); return ( <> {itemsJSX} ); }