mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-27 18:15:35 +03:00
2466af6936
Change-Id: Ia1f862fb5962ddd54b8d7643abbc39bb314d1f8e
9 lines
243 B
TypeScript
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;
|