Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
import { useLocalizedCopy } from '../../i18n/useLocalizedCopy.js';
import { PanelLeftClose } from 'lucide-react';
import type { ReactNode } from 'react';
export function ConversationHeader(props: {
title: string;
taskToolbar?: ReactNode;
fileWorkspaceOpen?: boolean;
onOpenLocation(): void;
}) {
const l = useLocalizedCopy();
return (
<header className={`conversation-header${props.taskToolbar ? ' conversation-header--task' : ''}`}>
<div className="conversation-title">
<div className="conversation-title-row">
<h1>{props.title}</h1>
</div>
</div>
<div className="conversation-actions">
<button
className="sidebar-collapse-button conversation-file-button"
type="button"
aria-label={l("文件", "Files")}
aria-pressed={props.fileWorkspaceOpen === true}
title={props.fileWorkspaceOpen ? l("收起文件工作区", "Collapse file workspace") : l("打开文件工作区", "Open file workspace")}
onClick={props.onOpenLocation}
>
<PanelLeftClose aria-hidden="true" size={18} strokeWidth={1.85} />
</button>
</div>
{props.taskToolbar ? (
<div className="conversation-task-strip">{props.taskToolbar}</div>
) : null}
</header>
);
}