LLM inference in C/C++
C++ ggml
<script lang="ts">
import { ChevronLeft, ChevronRight } from '@lucide/svelte';
import { Button } from '$lib/components/ui/button';
interface Props {
onPrev: () => void;
onNext: () => void;
show: boolean;
}
let { onNext, onPrev, show }: Props = $props();
</script>
{#if show}
<Button
aria-label="Previous"
class="absolute top-1/2 left-4 z-10 h-8 w-8 -translate-y-1/2 rounded-full bg-background/5 p-0 text-white!"
onclick={onPrev}
size="icon"
variant="secondary"
>
<ChevronLeft class="size-4" />
</Button>
<Button
aria-label="Next"
class="absolute top-1/2 right-4 z-10 h-8 w-8 -translate-y-1/2 rounded-full bg-background/5 p-0 text-white!"
onclick={onNext}
size="icon"
variant="secondary"
>
<ChevronRight class="size-4" />
</Button>
{/if}