import {Context, createContext, Dispatch, SetStateAction} from "react";
import {BookProps} from "@/lib/models/Book";

export interface BookContextProps {
    book: BookProps | null,
    setBook?: Dispatch<SetStateAction<BookProps | null>>
}

export const BookContext: Context<BookContextProps> = createContext<BookContextProps>({
    book: null,
    setBook: () => {
    }
})
