aboutsummaryrefslogtreecommitdiff
path: root/src/context.ts
blob: 25d2cf5279ac02ec97a34bffe3f5caf8a5ed045f (plain)
1
2
3
4
5
6
7
8
9
import { createContext } from "react";
import { LangType } from "./type/messageTypes";
export type LoginType = {
	username: string;
	lastSeen: number;
	validUntil: number;
};
export const LangContext = createContext<LangType>("en_US");
export const LoginContext = createContext<LoginType | undefined>(undefined);