import React , { useEffect } from 'react' ; import { AppProvider } from '@shopify/polaris' ; import CustomLink from './CustomLink' ; import { useTranslation } from './TextProvider' ; const PolarisProvider = ( { children } ) => { const currentTranslation = useTranslation ( ) ; return ( < AppProvider i18n = { currentTranslation } linkComponent = { CustomLink } > { children } < /AppProvider>); } ; export default PolarisProvider ;