- Deleted redundant components (`AddActionButton`, `AlertBox`, `AlertStack`, `BackButton`, `CancelButton`, and `CollapsableArea`) and related files. - Removed unused models (`Book`, `BookSerie`, `BookTables`, `Character`, and `Chapter`) to reduce codebase clutter. - Updated project structure and references to reflect these removals.
18 lines
497 B
TypeScript
Executable File
18 lines
497 B
TypeScript
Executable File
import {SessionProps} from "@/lib/types/session";
|
|
import {Context, createContext, Dispatch, SetStateAction} from "react";
|
|
|
|
export interface SessionContextProps {
|
|
session: SessionProps;
|
|
setSession: Dispatch<SetStateAction<SessionProps>>;
|
|
}
|
|
|
|
export const SessionContext: Context<SessionContextProps> = createContext<SessionContextProps>({
|
|
session: {
|
|
isConnected: false,
|
|
accessToken: "",
|
|
user: null,
|
|
},
|
|
setSession: (): void => {
|
|
},
|
|
})
|