import { FullModal } from '@/components/FullModal'; import { SidebarView, SidebarViewMenuType } from '@/components/SidebarView'; import React, { useCallback, useMemo } from 'react'; import { t } from 'tailchat-shared'; import { SettingsAbout } from './About'; import { SettingsAccount } from './Account'; import { SettingsStatus } from './Status'; interface SettingsViewProps { onClose: () => void; } export const SettingsView: React.FC = React.memo((props) => { const handleChangeVisible = useCallback( (visible) => { if (visible === false && typeof props.onClose === 'function') { props.onClose(); } }, [props.onClose] ); const menu: SidebarViewMenuType[] = useMemo( () => [ { type: 'group', title: t('通用'), children: [ { type: 'item', title: t('账户信息'), content: , }, { type: 'item', title: t('服务状态'), content: , }, { type: 'item', title: t('关于'), content: , }, ], }, ], [] ); return ( ); }); SettingsView.displayName = 'SettingsView';