"use client"; import type { PreviewAnnotationPayload, ScopedThreadRef } from "@t3tools/contracts"; import type { ComposerImageAttachment } from "~/composerDraftStore"; import { isPreviewSupportedInRuntime } from "~/previewStateStore"; import { PreviewPanelShell, type PreviewPanelMode } from "./PreviewPanelShell"; import { PreviewView } from "./PreviewView"; interface Props { mode: PreviewPanelMode; threadRef: ScopedThreadRef; tabId?: string | null; configuredUrls?: ReadonlyArray | undefined; visible: boolean; onSendAnnotation?: ( annotation: PreviewAnnotationPayload, image: ComposerImageAttachment | null, ) => void; } export function PreviewPanel({ mode, threadRef, tabId, configuredUrls, visible, onSendAnnotation, }: Props) { if (!isPreviewSupportedInRuntime()) { return (

Preview is only available in the T3 Code desktop app.

); } return ( ); }