pass user object to user context

This commit is contained in:
Milo Schwartz 2024-10-12 21:30:35 -04:00
parent 61fca6a1f6
commit 41cbde1474
No known key found for this signature in database
6 changed files with 23 additions and 12 deletions

View file

@ -1,3 +1,4 @@
import { GetUserResponse } from "@server/routers/user";
import { createContext } from "react";
export const UserContext = createContext<boolean | null>(null);
export const UserContext = createContext<GetUserResponse | null>(null);