MCPcopy Create free account
hub / github.com/api-platform/website / DocProvider

Function DocProvider

pwa/contexts/DocContext.tsx:15–22  ·  view source on GitHub ↗
({ children }: PropsWithChildren)

Source from the content-addressed store, hash-verified

13});
14
15export function DocProvider({ children }: PropsWithChildren) {
16 const [breadCrumbs, setBreadCrumbs] = useState<BreadCrumbLink[]>([]);
17 return (
18 <DocContext.Provider value={{ breadCrumbs, setBreadCrumbs }}>
19 {children}
20 </DocContext.Provider>
21 );
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected