import React, { useContext } from "react" import { HistoryContext } from "@/components/Layouts/Layout.tsx" import { PanelLeftIcon } from "lucide-react" import { Button } from "antd" import { PlusOutlined } from "@ant-design/icons" import { useMessageOption } from "@/hooks/useMessageOption.tsx" import { useTranslation } from "react-i18next" export const Header = () => { const { show, setShow } = useContext(HistoryContext) const { t } = useTranslation(["option", "common", "settings"]) const { clearChat } = useMessageOption() return (
{/*控制侧边栏显示隐藏与新建对话*/} {!show && (
)} {/* 项目标题 */}

数联网科创智能体

) }