import React from 'react'
import { ConfigProvider, ModalProvider } from '@pancakeswap/uikit'
import { useTranslation } from 'contexts/Localization'

const ConfigProviders: React.FC = ({ children }) => {
  const { t } = useTranslation()
  return (
    <ConfigProvider t={t}>
      <ModalProvider>{children}</ModalProvider>
    </ConfigProvider>
  )
}

export default ConfigProviders
