]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
06e1f5928c5826276ad6a91570c6a21ee7d513b7
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 import { Music } from '@lucide/svelte';
3
4 interface Props {
5 currentItem: { name?: string } | null;
6 audioSrc: string | null;
7 }
8
9 let { currentItem, audioSrc }: Props = $props();
10 </script>
11
12 <div class="flex flex-1 items-center justify-center p-8">
13 <div class="w-full max-w-md text-center">
14 <Music class="mx-auto mb-4 h-16 w-16 text-white/50" />
15
16 {#if audioSrc}
17 <audio controls class="mb-4 w-full" src={audioSrc}>
18 Your browser does not support the audio element.
19 </audio>
20 {:else}
21 <p class="mb-4 text-white/70">Audio preview not available</p>
22 {/if}
23
24 <p class="text-sm text-white/50">{currentItem?.name || 'Audio'}</p>
25 </div>
26 </div>