synapse-admin/src/AppContext.tsx

10 lines
243 B
TypeScript
Raw Normal View History

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