]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
070ff823011bca47265d301c87a32e93d316763c
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 interface Props {
3 currentItem: { name?: string } | null;
4 displayPreview: string | undefined;
5 }
6
7 let { currentItem, displayPreview }: Props = $props();
8 </script>
9
10 {#if displayPreview}
11 <div class="flex flex-1 items-center justify-center">
12 <img
13 src={displayPreview}
14 alt={currentItem?.name || 'preview'}
15 class="max-h-[80vh] max-w-[80vw] rounded-lg object-contain shadow-lg"
16 />
17 </div>
18 {/if}