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.
21 lines
526 B
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>
|
|
)
|
|
|