"use client"; import { ExternalLink, FolderOpen } from "lucide-react"; import { normalizeBrowserReachableHttpUrl } from "@/lib/panelUrls"; type TFn = (zh: string, en: string) => string; type PortalTheme = "dark" | "light"; type Props = { t: TFn; portalTheme: PortalTheme; filebrowserUrl: string; }; export function LiveFilebrowserPanel({ t, portalTheme, filebrowserUrl }: Props) { const url = filebrowserUrl ? normalizeBrowserReachableHttpUrl(filebrowserUrl) : ""; return (

{t("文件(File Browser)", "Files (File Browser)")}

{t( "与 Docker 部署的 File Browser 分离:此处仅嵌入面板并说明 API,便于你自建「选本地视频 → 配合 TikTok HDMI 测试」等前端逻辑。", "Separate from File Browser itself: embed + API notes so you can build “pick local video → TikTok HDMI test” flows.", )}

{t("内置 UI(iframe)", "Built-in UI (iframe)")}

{t( "若服务未启动或端口不通,请先在「服务」页启动 filebrowser 容器。", "Start the filebrowser service from Services if the frame is blank.", )}

{url ? (
{url} {t("新窗口", "New tab")}