Add library manager with tracks, albums and uploads sections

This commit is contained in:
2026-09-25 01:07:15 +02:00
parent 4ac73d8fa3
commit 9928840577
28 changed files with 1622 additions and 118 deletions
@@ -0,0 +1,21 @@
<script lang="ts">
interface Props {
label: string;
tone?: 'success' | 'neutral' | 'danger';
class?: string;
}
let { label, tone = 'neutral', class: klass = '' }: Props = $props();
const TONE = {
success: 'bg-accent-tint text-accent-soft',
neutral: 'bg-btn text-fg-2',
danger: 'bg-danger/15 text-danger-fg'
};
</script>
<span
class="inline-flex items-center rounded-full px-2.5 py-1 text-xs font-medium whitespace-nowrap {TONE[
tone
]} {klass}">{label}</span
>