'use client'; /** TODO [>=8] Удалить HOC. */ import * as React from 'react'; import { ModalRootContext } from './ModalRootContext'; import type { ModalRootContextInterface } from './types'; type PickedProps = Pick; /** * @deprecated HOC не актуален и будет удалён в **VKUI v8**, так как вызывать `updateModalHeight()` * для модальных окон с `dynamicContentHeight` больше не требуется. */ export function withModalRootContext

( Component: React.ComponentType

, ): React.ComponentType> { function WithModalRootContext(props: Omit) { const { updateModalHeight } = React.useContext(ModalRootContext); return ; } return WithModalRootContext; }