<script lang="ts">
    let {
        src,
        alt,
    }: {
        src: 'getting-started/interface' | 'tools/routing' | 'tools/split';
        alt: string;
    } = $props();
</script>

<div class="flex flex-col items-center py-6 w-full">
    <div class="rounded-md overflow-hidden overflow-clip shadow-xl mx-auto">
        {#if src === 'getting-started/interface'}
            <enhanced:img
                src="/src/lib/assets/img/docs/getting-started/interface.png"
                {alt}
                class="w-full max-w-3xl"
            />
        {:else if src === 'tools/routing'}
            <enhanced:img
                src="/src/lib/assets/img/docs/tools/routing.png"
                {alt}
                class="w-full max-w-3xl"
            />
        {:else if src === 'tools/split'}
            <enhanced:img
                src="/src/lib/assets/img/docs/tools/split.png"
                {alt}
                class="w-full max-w-3xl"
            />
        {/if}
    </div>
    <p class="text-center text-sm text-muted-foreground mt-2">{alt}</p>
</div>
