2024-08-12 05:50:54 -04:00
|
|
|
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'
|
2024-10-10 09:13:01 -04:00
|
|
|
import { ReviewPanelViewProvider } from './review-panel-view-context'
|
2024-08-12 05:50:54 -04:00
|
|
|
|
|
|
|
export const ReviewPanelProviders: FC = ({ children }) => {
|
|
|
|
if (!isSplitTestEnabled('review-panel-redesign')) {
|
|
|
|
return <>{children}</>
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2024-10-10 09:13:01 -04:00
|
|
|
<ReviewPanelViewProvider>
|
|
|
|
<ChangesUsersProvider>
|
|
|
|
<TrackChangesStateProvider>
|
|
|
|
<ThreadsProvider>
|
|
|
|
<RangesProvider>{children}</RangesProvider>
|
|
|
|
</ThreadsProvider>
|
|
|
|
</TrackChangesStateProvider>
|
|
|
|
</ChangesUsersProvider>
|
|
|
|
</ReviewPanelViewProvider>
|
2024-08-12 05:50:54 -04:00
|
|
|
)
|
|
|
|
}
|