import Link from "next/link"; import { ArrowLeft, RefreshCw } from "lucide-react"; export function AppShell({ children, onRefresh, showBack, onBack, backLabel = "返回", toolbarLeading, centerNav }: { children: React.ReactNode; onRefresh?: () => void; showBack?: boolean; // 提供 onBack 时,返回按钮走该回调(如浏览器历史回退),回到来时的页面;否则默认 Link 到 /runs。 onBack?: () => void; backLabel?: string; toolbarLeading?: React.ReactNode; centerNav?: React.ReactNode; }) { return (
{onBack ? ( ) : showBack ? ( {backLabel} ) : null} ContentFindAgent
{centerNav ?
{centerNav}
: null}
{toolbarLeading} 配置 {onRefresh ? ( ) : null}
{children}
); }