about summary refs log tree commit diff
path: root/src/state/messages/index.tsx
blob: 205d17e8caf91d75d5968f1b29624457064c4cfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import React from 'react'

import {CurrentConvoIdProvider} from '#/state/messages/current-convo-id'
import {MessagesEventBusProvider} from '#/state/messages/events'

export function MessagesProvider({children}: {children: React.ReactNode}) {
  return (
    <CurrentConvoIdProvider>
      <MessagesEventBusProvider>{children}</MessagesEventBusProvider>
    </CurrentConvoIdProvider>
  )
}