import { createContext, useContext, type ParentProps } from "solid-js"; export interface RepeatScopeValue { item: unknown; index: number; basePath: string; } const RepeatScopeContext = createContext(null); export function RepeatScopeProvider(props: ParentProps) { return ( {props.children} ); } export function useRepeatScope(): RepeatScopeValue | null { return useContext(RepeatScopeContext); }