mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Remove userContext from pages dir
This commit is contained in:
11
contexts/userContext.ts
Normal file
11
contexts/userContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import GetUserSchema from '@/services/user/schema/GetUserSchema';
|
||||
import { createContext } from 'react';
|
||||
import { z } from 'zod';
|
||||
|
||||
const UserContext = createContext<{
|
||||
user?: z.infer<typeof GetUserSchema>;
|
||||
error?: unknown;
|
||||
isLoading: boolean;
|
||||
}>({ isLoading: true });
|
||||
|
||||
export default UserContext;
|
||||
Reference in New Issue
Block a user