import React, { ReactNode } from 'react'

import { AuthStore } from 'features/AuthStore'
import { LexicsStore } from 'features/LexicsStore'

type Props = {
  children: ReactNode,
}

export const GlobalStores = ({ children }: Props) => (
  <AuthStore>
    <LexicsStore>
      {children}
    </LexicsStore>
  </AuthStore>
)
