2 import { fade } from 'svelte/transition';
3 import type { UseProcessingStateReturn } from '$lib/hooks/use-processing-state.svelte';
6 modelLoadingText: string | null;
7 processingState: UseProcessingStateReturn;
8 position: 'top' | 'bottom';
11 let { modelLoadingText, processingState, position }: Props = $props();
13 const marginClass = position === 'top' ? 'mt-6' : 'mt-4';
16 <div class="{marginClass} w-full max-w-3xl" in:fade>
17 <div class="flex flex-col items-start gap-2">
18 <span class="shimmer-text text-sm">
20 processingState.getPromptProgressText() ??
21 processingState.getProcessingMessage() ??