mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-13 19:09:46 -04:00
19 lines
305 B
TypeScript
19 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,
|
|
});
|