import * as React from 'react'; import { classNames } from '@vkontakte/vkjs'; import { mergeStyle } from '../../helpers/mergeStyle'; import type { HasComponent, HasRootRef } from '../../types'; import styles from './RootComponent.module.css'; export interface RootComponentProps extends React.AllHTMLAttributes, HasRootRef, HasComponent { /** * @deprecated Since 7.3.0. * * Свойство устарело и будет удалено в `v8`, используйте свойство `className`. */ baseClassName?: string | false; // TODO: Перенести свойство в RootComponentInternalProps, в непубличное API /** * @deprecated Since 7.3.0. * * Свойство устарело и будет удалено в `v8`, используйте свойство `style`. */ baseStyle?: React.CSSProperties; // TODO: Перенести свойство в RootComponentInternalProps, в непубличное API } /** * Базовый корневой компонент. */ export const RootComponent = ({ Component = 'div', baseClassName, className, baseStyle, style, getRootRef, ...restProps }: RootComponentProps): React.ReactNode => ( );