mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 18:29:15 +03:00
20 lines
614 B
TypeScript
20 lines
614 B
TypeScript
import { createContext } from 'react';
|
|
import { ProfilePageViewStatusContextType, UsersPageContextType } from 'types';
|
|
import RootStore from '../stores/RootStore';
|
|
|
|
export const StoreContext = createContext<RootStore | undefined>(undefined);
|
|
|
|
export const ProfilePageViewContext = createContext<ProfilePageViewStatusContextType>({
|
|
statusPageView: 'default',
|
|
setStatusPageView: () => {},
|
|
});
|
|
|
|
export const UsersPageContext = createContext<UsersPageContextType>({
|
|
searchingRole: undefined,
|
|
setSearchingRole: () => {},
|
|
loading: false,
|
|
setLoading: () => {},
|
|
search: undefined,
|
|
setSearch: () => {},
|
|
});
|