import { type JSX, splitProps, Show } from 'solid-js'; import { cn } from '../utils/cn'; import { TextShimmer } from './text-shimmer'; import { ChevronRight } from 'lucide-solid'; export interface ThinkingBarProps { class?: string; text?: string; onStop?: () => void; stopLabel?: string; onClick?: () => void; } function ThinkingBar(props: ThinkingBarProps) { const [local] = splitProps(props, ['class', 'text', 'onStop', 'stopLabel', 'onClick']); const text = () => local.text ?? 'Thinking'; const stopLabel = () => local.stopLabel ?? 'Answer now'; return (
{text()} } >
); } export { ThinkingBar };