refactor: move duplicates into library settings

This commit is contained in:
2026-08-17 10:32:57 -04:00
parent 315149e8a2
commit 904d8fc76f
6 changed files with 110 additions and 18 deletions
@@ -7,7 +7,7 @@
import { useSidebar } from '$lib/components/ui/sidebar/index.js';
import { getBookshelfState } from '$lib/state/bookshelf.svelte';
import { getLibraryState } from '$lib/state/library.svelte';
import { CopyCheck, House, LibraryBig, Rows3, ChevronRightIcon } from '@lucide/svelte';
import { House, LibraryBig, Rows3, ChevronRightIcon } from '@lucide/svelte';
const libraryState = getLibraryState();
const bookshelfState = getBookshelfState();
@@ -43,13 +43,6 @@
path: (id?: number) =>
resolve('/(root)/(library)/library/[libraryId]/view', { libraryId: String(id ?? '') })
},
{
title: 'Duplicates',
icon: CopyCheck,
routeId: '/(root)/(library)/library/[libraryId]/duplicates',
path: (id?: number) =>
resolve('/(root)/(library)/library/[libraryId]/duplicates', { libraryId: String(id ?? '') })
},
{ title: 'Shelves', icon: Rows3, routeId: null, path: () => '#', shelves: [] }
];
</script>