MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / SystemProvider

Function SystemProvider

frontend/packages/core/src/contexts/SystemContext.tsx:24–30  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

22};
23
24export const SystemProvider: FC<{ children: ReactNode }> = ({ children }) => {
25 const [apiPrefix, setApiPrefix] = useState<string>('');
26 const [prefixForce, setPrefixForce] = useState<boolean>(false);
27 const [systemInfo, setSystemInfo] = useState<SystemConfigFieldType>()
28
29 return <SystemContext.Provider value={{apiPrefix,setApiPrefix,prefixForce,setPrefixForce,systemInfo, setSystemInfo }}>{children}</SystemContext.Provider>;
30};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected