import { ReactElement } from 'react'; import { NotificationProps } from '../../../../../../../../../src/components/Notification'; import { IconNamesType } from '../../../../../../../../../src/utils'; export type PopupPosition = "top" | "top-right" | "top-left" | "bottom" | "bottom-right" | "bottom-left"; export type PopupId = string | number; export interface PopupOptions { id?: PopupId; position?: PopupPosition; } export interface ToastOptions extends PopupOptions { duration?: number; message: string; icon?: IconNamesType; "aria-label"?: string; } export interface NotificationOptions extends PopupOptions { node: ReactElement; width?: string; } export type PopupState = { zIndex: number; positions: { [K in PopupPosition]: PopupOptions[]; }; };