You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/features/GlobalStores/index.tsx

21 lines
526 B

import { ReactNode } from 'react'
import { client } from 'config/clients'
import { getLanguageUrlParam } from 'helpers/languageUrlParam'
import { AuthStore } from 'features/AuthStore'
import { LexicsStore } from 'features/LexicsStore'
const initialLanguage = getLanguageUrlParam() || client.defaultLanguage
type Props = {
children: ReactNode,
}
export const GlobalStores = ({ children }: Props) => (
<LexicsStore initialLanguage={initialLanguage}>
<AuthStore>
{children}
</AuthStore>
</LexicsStore>
)