mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
23 lines
721 B
TypeScript
23 lines
721 B
TypeScript
|
import { FC } from 'react'
|
||
|
import { RangesProvider } from './ranges-context'
|
||
|
import { ChangesUsersProvider } from './changes-users-context'
|
||
|
import { TrackChangesStateProvider } from './track-changes-state-context'
|
||
|
import { ThreadsProvider } from './threads-context'
|
||
|
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
||
|
|
||
|
export const ReviewPanelProviders: FC = ({ children }) => {
|
||
|
if (!isSplitTestEnabled('review-panel-redesign')) {
|
||
|
return <>{children}</>
|
||
|
}
|
||
|
|
||
|
return (
|
||
|
<ChangesUsersProvider>
|
||
|
<TrackChangesStateProvider>
|
||
|
<ThreadsProvider>
|
||
|
<RangesProvider>{children}</RangesProvider>
|
||
|
</ThreadsProvider>
|
||
|
</TrackChangesStateProvider>
|
||
|
</ChangesUsersProvider>
|
||
|
)
|
||
|
}
|