]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
4ebbd592280499b461a78597138e3b66d73db52e
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 import { Video } from '@lucide/svelte';
3
4 interface Props {
5 currentItem: { name?: string } | null;
6 videoSrc: string | null;
7 }
8
9 let { currentItem, videoSrc }: 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 <Video class="mx-auto mb-4 h-16 w-16 text-white/50" />
15
16 {#if videoSrc}
17 <video controls class="mb-4 w-full" src={videoSrc}>
18 Your browser does not support the video element.
19 </video>
20 {:else}
21 <p class="mb-4 text-white/70">Video preview not available</p>
22 {/if}
23
24 <p class="text-sm text-white/50">{currentItem?.name || 'Video'}</p>
25 </div>
26 </div>