Add library manager with tracks, albums and uploads sections
This commit is contained in:
@@ -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
|
||||
>
|
||||
Reference in New Issue
Block a user