import { StudioCommandMessageList } from './StudioCommandMessageList' import type { StudioCommandPanelStore } from './store' interface StudioCommandViewportProps { store: StudioCommandPanelStore endRef: React.RefObject scrollRef: React.RefObject messagesLength: number isMinimal: boolean isTLayout: boolean variant: 'default' | 't-layout-bottom' | 'pure-minimal-bottom' readyLabel: string } export function StudioCommandViewport({ store, endRef, scrollRef, messagesLength, isMinimal, isTLayout, variant, readyLabel, }: StudioCommandViewportProps) { return (
{messagesLength === 0 && !isMinimal && (
{isTLayout ? (
{readyLabel}
) : ( <>
🐾
{readyLabel}
)}
)}
) }