mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-12-19 06:21:49 +03:00
10 lines
243 B
TypeScript
10 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;
|