VEHwang's picture
Upload CoCogni4D-Bench (questions, media, scripts, render records, code) (part 4)
9d57416 verified
Raw History Blame Contribute Delete
886 Bytes
export type Console = 'config' | 'segments' | 'questions' | 'verify' | null;
const TABS: [Console, string, string][] = [['config', '生成配置台', '/#/config'], ['verify', '脚本验证', '/#/verify'], ['segments', '剧本验收台', '/#/segments'], ['questions', '渲染验收台', '/evidence/evidence.html']];
// 样张 v3 的顶栏:logo、三个台页签、批次名,同一行。
export function TopBar({active, batch}: {active: Console; batch?: string}) {
return <header className="topbar"><a className="logo" href="/#/config"><i />next 审阅台</a>
<nav className="tabs" aria-label="三个台">{TABS.map(([id, label, href]) => <a key={id} className={id === active ? 'tab on' : 'tab'} aria-current={id === active ? 'page' : undefined} href={href}>{label}</a>)}</nav>
<span className="r">{batch && <span className="sel">批次:{batch}</span>}</span></header>;
}