aboutsummaryrefslogtreecommitdiffstats
path: root/src/contexts/Contexts.jsx
blob: 12691549be22dfeefa07b2cb9d8563364e57f225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QueryContext from './QueryContext'
import RouterContext from './RouterContext'
import ThemeContext from './ThemeContext'

const Contexts = () => {
  const contexts = [ThemeContext, QueryContext, RouterContext]

  return contexts.reduceRight((acc, Context) => {
    return <Context>{acc}</Context>
  }, {})
}

export default Contexts