import { Card, Divider, Flex, Switch, Typography } from 'antd'; import { useTranslation } from 'react-i18next'; import { useAppDispatch } from '@/hooks/useAppDispatch'; import { useAppSelector } from '@/hooks/useAppSelector'; import { toggleTheme } from '@/features/theme/themeSlice'; import { useDocumentTitle } from '@/hooks/useDoumentTItle'; import { MoonOutlined, SunOutlined } from '@ant-design/icons'; const AppearanceSettings = () => { const { t } = useTranslation('settings/appearance'); const themeMode = useAppSelector(state => state.themeReducer.mode); const dispatch = useAppDispatch(); useDocumentTitle(t('title')); const handleThemeToggle = () => { dispatch(toggleTheme()); }; return ( } unCheckedChildren={} /> {t('darkMode')} {t('darkModeDescription')} ); }; export default AppearanceSettings;