- 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.
13 lines
450 B
TypeScript
13 lines
450 B
TypeScript
import {SyncedBook} from "@/lib/types/synced-book";
|
|
import {Context, createContext, Dispatch, SetStateAction} from "react";
|
|
|
|
export interface BooksSyncContextProps {
|
|
setServerSyncedBooks: Dispatch<SetStateAction<SyncedBook[]>>;
|
|
serverSyncedBooks: SyncedBook[];
|
|
}
|
|
|
|
export const BooksSyncContext: Context<BooksSyncContextProps> = createContext<BooksSyncContextProps>({
|
|
serverSyncedBooks: [],
|
|
setServerSyncedBooks: (): void => {
|
|
}
|
|
}) |