Files
bookshelf/books/types.ts
Yuriy Panov 3004f712f3 initial
2026-02-02 17:12:25 +06:00

35 lines
628 B
TypeScript

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;
}