import {ChapterProps} from "@/lib/types/chapter"; import {Context, createContext, Dispatch, SetStateAction} from "react"; export interface ChapterContextProps { chapter: ChapterProps | undefined, setChapter: Dispatch> } export const ChapterContext: Context = createContext({ chapter: undefined, setChapter: (_value: SetStateAction): void => { } })