import { type Accessor, createContext, useContext } from "solid-js"; /** * Group-collection scope pushed by `` consumers who want to * render nested `` output against their own sub-list * of items. `null` when outside any group → Collection falls back to * `root.filteredItems()`. */ export interface GroupCollectionContextValue { items: Accessor; } export const GroupCollectionContext = createContext(null); export function useGroupCollectionContext(): GroupCollectionContextValue | null { return useContext(GroupCollectionContext); }