import { ReactComponent as TranslationIcon } from '@/assets/svg/translation.svg'; import { useTranslate } from '@/hooks/commonHooks'; import { GithubOutlined } from '@ant-design/icons'; import { Dropdown, MenuProps, Space } from 'antd'; import React from 'react'; import User from '../user'; import { useChangeLanguage } from '@/hooks/logicHooks'; import styled from './index.less'; const Circle = ({ children, ...restProps }: React.PropsWithChildren) => { return (
{children}
); }; const handleGithubCLick = () => { window.open('https://github.com/infiniflow/ragflow', 'target'); }; const RightToolBar = () => { const { t } = useTranslate('common'); const changeLanguage = useChangeLanguage(); const handleItemClick: MenuProps['onClick'] = ({ key }) => { changeLanguage(key); }; const items: MenuProps['items'] = [ { key: 'English', label: {t('english')}, }, { type: 'divider' }, { key: 'Chinese', label: {t('chinese')}, }, ]; return (
{/* */}
); }; export default RightToolBar;