'use client'; import * as React from 'react'; import { Tappable, type TappableOmitProps } from '../Tappable/Tappable'; import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden'; import styles from './ModalOutsideButton.module.css'; export interface ModalOutsideButtonProps extends TappableOmitProps { /** * Текст для скринридера. */ 'aria-label'?: string; /** * Рекомендуется использовать иконки размером `20px`. */ 'children': React.ReactNode; } /** * @see https://vkui.io/components/modal-outside-button */ export const ModalOutsideButton = ({ children, 'aria-label': ariaLabel, ...restProps }: ModalOutsideButtonProps) => { return ( {ariaLabel && {ariaLabel}} {children} ); };