import { ConfigProvider } from 'antd';
import type { ConfigProviderProps } from 'antd/es/config-provider';
import ru_RU from 'antd/lib/locale/ru_RU';
import type { ReactNode } from 'react';

export function Config({ children, ...config }: ConfigProviderProps & { children: ReactNode }) {
  return (
    <ConfigProvider {...config} locale={ru_RU}>
      {children}
    </ConfigProvider>
  );
}
