2023-02-15 13:00:09 +01:00
|
|
|
import { ToastPosition } from 'react-hot-toast';
|
|
|
|
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
2023-05-10 16:25:30 +02:00
|
|
|
import { Sx } from '@mantine/core';
|
2023-11-15 15:28:21 +01:00
|
|
|
import { IconAnimation } from '../components/LibIcon';
|
2023-02-15 13:00:09 +01:00
|
|
|
|
|
|
|
|
export interface NotificationProps {
|
2023-05-10 16:25:30 +02:00
|
|
|
style?: Sx;
|
2023-02-15 13:00:09 +01:00
|
|
|
description?: string;
|
|
|
|
|
title?: string;
|
|
|
|
|
duration?: number;
|
2024-04-12 23:15:57 +08:00
|
|
|
showDuration?: boolean;
|
2023-02-15 13:00:09 +01:00
|
|
|
icon?: IconProp;
|
|
|
|
|
iconColor?: string;
|
2023-11-15 15:28:21 +01:00
|
|
|
iconAnimation?: IconAnimation;
|
2023-02-15 13:00:09 +01:00
|
|
|
position?: ToastPosition | 'top' | 'bottom';
|
|
|
|
|
id?: number | string;
|
|
|
|
|
type?: string;
|
2023-11-15 14:30:33 +01:00
|
|
|
alignIcon?: 'top' | 'center';
|
2023-02-15 13:00:09 +01:00
|
|
|
}
|