feat: pdf reader

This commit is contained in:
2026-06-03 22:46:38 -05:00
parent d9c66e68a6
commit f091386974
29 changed files with 29469 additions and 2593 deletions
+1 -6
View File
@@ -191,13 +191,9 @@ export function LibraryPage() {
const openBook = useCallback(
(book: LibraryBook) => {
if (book.format === "pdf") {
setReaderNotice(t("library.pdfNotice"));
return;
}
navigate(`/read/${book.id}`);
},
[navigate, t],
[navigate],
);
const containerStyle: React.CSSProperties = {
@@ -337,7 +333,6 @@ export function LibraryPage() {
visible={showSuggestions && !voiceSearch.isListening}
onClose={() => setShowSuggestions(false)}
onSelectSuggestion={() => setShowSuggestions(false)}
onPdfBook={() => setReaderNotice(t("library.pdfNotice"))}
/>
</div>
<button