overleaf/services/web/frontend/js/features/ide-react/scope-adapters/review-panel-context-adapter.ts

10 lines
425 B
TypeScript
Raw Normal View History

import { ReactScopeValueStore } from '@/features/ide-react/scope-value-store/react-scope-value-store'
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
export default function populateReviewPanelScope(store: ReactScopeValueStore) {
store.set('loadingThreads', true)
store.set('users', {})
store.set('addNewComment', () => {})
store.set('usingNewReviewPanel', isSplitTestEnabled('review-panel-redesign'))
}