import { ButtonHTMLAttributes, HTMLAttributes } from 'react'; import { THeadingTag } from '../Heading'; export interface IModalPartialProps extends HTMLAttributes { className?: string; } export interface IModalCloseButtonProps extends ButtonHTMLAttributes { className?: string; id: string; } export interface IModalContainerProps extends Omit, 'role' | 'className'> { id: string; focusedElementIndex?: number; canCloseOnEscapePress?: boolean; canCloseOnOverlayClick?: boolean; zIndex?: number; onOpen?: () => void; onClose?: () => void; } export interface IModalTitleProps extends HTMLAttributes { className?: string; as?: THeadingTag; } export type IModalProps = IModalContainerProps;