- 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.
15 lines
494 B
TypeScript
Executable File
15 lines
494 B
TypeScript
Executable File
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 => {
|
|
}
|
|
})
|