import type { CSSProperties, HTMLAttributes, ReactNode } from 'react'; import type { WithTestId } from '../types'; export interface SnackBarStyle extends CSSProperties { '--snackbar-bottom-gap'?: string; } export interface SnackBarProps extends HTMLAttributes, WithTestId { /** Будет вызван при мoнтировании. */ onMount?: VoidFunction; /** Стили. */ style?: SnackBarStyle; } export interface SnackBarImageProps extends HTMLAttributes { src: string; } export interface SnackBarIconProps extends HTMLAttributes { icon: ReactNode; }