import { useEffect } from 'react'; import { MdSettings, MdHome, MdQuestionAnswer } from 'react-icons/md'; import { ChakraProvider, Tabs, TabList, TabPanels, Tab, TabPanel, Icon, chakra } from '@chakra-ui/react'; import { MainTab } from '~/tabs/MainTab'; import { SettingsTab } from '~/tabs/SettingsTab'; import { Provider } from 'react-redux'; import { theme } from '~/theme'; import { persistSettings } from '~/features/settings/persistSettings'; import { setupStore } from '~/store'; import { Footer } from '~/components/Footer'; import { FaqTab } from '~/tabs/FaqTab'; // Private to this file only. const store = setupStore(); export function AppRoot() { useEffect(() => persistSettings(store), []); return ( 应用 设置 答疑