import { useTranslate } from '@/hooks/common-hooks'; import { useFetchFlow } from '@/hooks/flow-hooks'; import { ArrowLeftOutlined } from '@ant-design/icons'; import { Button, Flex, Space } from 'antd'; import { Link } from 'umi'; import { useSaveGraph, useSaveGraphBeforeOpeningDebugDrawer } from '../hooks'; import styles from './index.less'; interface IProps { showChatDrawer(): void; } const FlowHeader = ({ showChatDrawer }: IProps) => { const { saveGraph } = useSaveGraph(); const handleRun = useSaveGraphBeforeOpeningDebugDrawer(showChatDrawer); const { data } = useFetchFlow(); const { t } = useTranslate('flow'); return ( <>

{data.title}

); }; export default FlowHeader;