import { ConfigProvider } from 'antd';
import { ReactNode } from 'react';
import { MyLoading } from './MyLoading';

export function MyRootContainer({ children }: { children: ReactNode }) {
  return (
    <ConfigProvider
      // 输入框圆角
      theme={{
        token: {
          fontSize: 14,
          borderRadius: 5,
          // colorPrimary: '#00928a',
          // colorInfo: '#00928a',
        },
      }}
    >
      <MyLoading />
      {children}
    </ConfigProvider>
  );
}
