18 lines
305 B
TypeScript
18 lines
305 B
TypeScript
import { createContext } from "react-router";
|
|
|
|
type User = {
|
|
id: string;
|
|
email: string;
|
|
username: string;
|
|
hasDownloadedResticPassword: boolean;
|
|
};
|
|
|
|
type AppContext = {
|
|
user: User | null;
|
|
hasUsers: boolean;
|
|
};
|
|
|
|
export const appContext = createContext<AppContext>({
|
|
user: null,
|
|
hasUsers: false,
|
|
});
|