"use client"; import Link from "next/link"; import { ArrowLeft, Database, RefreshCw } from "lucide-react"; export function AppShell({ children, title = "运营流程账本", titleExtra, subtitle, runId, showBack, backHref, onRefresh, actions }: { children: React.ReactNode; title?: string; titleExtra?: React.ReactNode; subtitle?: string; runId?: string; showBack?: boolean; backHref?: string; onRefresh?: () => void; actions?: React.ReactNode; }) { const resolvedBackHref = backHref || (runId ? `/runs/${encodeURIComponent(runId)}` : "/runs"); return (
{showBack ? ( 返回 ) : null} {title} {titleExtra} {subtitle ? {subtitle} : null}
{actions} {onRefresh ? ( ) : null}
{children}
); }