synapse-admin/src/AppContext.tsx
Manuel Stahl 2466af6936 Transform code base to typescript
Change-Id: Ia1f862fb5962ddd54b8d7643abbc39bb314d1f8e
2024-04-26 11:48:52 +02:00

9 lines
243 B
TypeScript

import { createContext, useContext } from "react";
interface AppContextType {
restrictBaseUrl: string | string[];
}
export const AppContext = createContext({});
export const useAppContext = () => useContext(AppContext) as AppContextType;