"use client"; import type { ScopedThreadRef } from "@t3tools/contracts"; 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; } export function PreviewPanel({ mode, threadRef, tabId, configuredUrls, visible }: Props) { if (!isPreviewSupportedInRuntime()) { return (

Preview is only available in the T3 Code desktop app.

); } return ( ); }