mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
13 lines
241 B
TypeScript
13 lines
241 B
TypeScript
import { createContext } from "react-router";
|
|
import type { User } from "./lib/types";
|
|
|
|
type AppContext = {
|
|
user: User | null;
|
|
hasUsers: boolean;
|
|
};
|
|
|
|
export const appContext = createContext<AppContext>({
|
|
user: null,
|
|
hasUsers: false,
|
|
});
|