mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 12:14:51 -05:00
749660e168
GitOrigin-RevId: 23e7ff8632172ebd0bc544a2297d1d4179010832
19 lines
658 B
TypeScript
19 lines
658 B
TypeScript
import useReviewPanelState from '@/features/ide-react/context/review-panel/hooks/use-review-panel-state'
|
|
import {
|
|
ReviewPanelUpdaterFnsContext,
|
|
ReviewPanelValueContext,
|
|
} from '@/features/source-editor/context/review-panel/review-panel-context'
|
|
|
|
const ReviewPanelReactIdeProvider: React.FC = ({ children }) => {
|
|
const { values, updaterFns } = useReviewPanelState()
|
|
|
|
return (
|
|
<ReviewPanelValueContext.Provider value={values}>
|
|
<ReviewPanelUpdaterFnsContext.Provider value={updaterFns}>
|
|
{children}
|
|
</ReviewPanelUpdaterFnsContext.Provider>
|
|
</ReviewPanelValueContext.Provider>
|
|
)
|
|
}
|
|
|
|
export default ReviewPanelReactIdeProvider
|