This commit is contained in:
Yuriy Panov
2026-02-02 17:12:25 +06:00
commit 3004f712f3
19 changed files with 1157 additions and 0 deletions

34
books/types.ts Normal file
View File

@@ -0,0 +1,34 @@
export enum AppScreen {
LIBRARY = 'LIBRARY',
CATEGORIES = 'CATEGORIES',
WISHLIST = 'WISHLIST',
SETTINGS = 'SETTINGS',
DETAILS = 'DETAILS',
ADD_BOOK = 'ADD_BOOK',
SCANNER = 'SCANNER',
}
export interface Book {
id: string;
title: string;
author: string;
genre: string;
annotation: string;
coverUrl?: string;
pages?: number;
language?: string;
publishedYear?: number;
rating?: number;
status: 'reading' | 'done' | 'want_to_read';
progress?: number;
isFavorite?: boolean;
}
export interface Category {
id: string;
name: string;
count: number;
icon: string;
colorClass: string;
}