Files
ox_lib/web/src/typings/notifications.ts

20 lines
539 B
TypeScript
Raw Normal View History

import { ToastPosition } from 'react-hot-toast';
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import { Sx } from '@mantine/core';
import { IconAnimation } from '../components/LibIcon';
export interface NotificationProps {
style?: Sx;
description?: string;
title?: string;
duration?: number;
showDuration?: boolean;
icon?: IconProp;
iconColor?: string;
iconAnimation?: IconAnimation;
position?: ToastPosition | 'top' | 'bottom';
id?: number | string;
type?: string;
alignIcon?: 'top' | 'center';
}