import * as React from 'react';
import { RouterProvider } from 'react-router-dom';
import { App as AntdApp, ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import AppRouter from '@/router';

const App: React.FC = () => {
    return (
        <ConfigProvider
            locale={zhCN}
            getPopupContainer={() => document.body}
            button={{ autoInsertSpace: false }}
        >
            <AntdApp style={{ height: '100%', lineHeight: 'normal' }}>
                <AppRouter />
            </AntdApp>
        </ConfigProvider>
    );
};

export default App;
