import {ChapterProps} from "@/lib/models/Chapter";
import {createContext, Dispatch, SetStateAction} from "react";


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

export const ChapterContext = createContext<ChapterContextProps>({
    chapter: undefined,
    setChapter: () => {
    }
})
