import {ChapterProps} from "@/lib/types/chapter";
import {Context, createContext, Dispatch, SetStateAction} from "react";


export interface ChapterContextProps {
    chapter: ChapterProps | undefined,
    setChapter: Dispatch<SetStateAction<ChapterProps | undefined>>
}

export const ChapterContext: Context<ChapterContextProps> = createContext<ChapterContextProps>({
    chapter: undefined,
    setChapter: (_value: SetStateAction<ChapterProps | undefined>): void => {
    }
})
