This commit is contained in:
Mikan
2025-06-02 17:30:35 +03:00
parent b5b2439bd8
commit 7538faa699
18 changed files with 528 additions and 212 deletions

View File

@@ -1,10 +1,5 @@
import {Account} from "../../types/users.ts";
import {UserContextType} from "../../types/users.ts";
import {createContext} from "react";
export type UserContextType = {
user: Account | undefined;
login: (userData: Account) => void;
logout: () => void;
};
export const UserContext = createContext<UserContextType | undefined>(undefined);