projectstarboy_ox_lib
Version:
JS/TS wrapper for ox_lib exports
27 lines (26 loc) • 960 B
TypeScript
import { Sx } from '@mantine/core';
import { IconName, IconPrefix } from '@fortawesome/fontawesome-common-types';
type NotificationPosition = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left' | 'center-right' | 'center-left';
type NotificationType = 'inform' | 'error' | 'success';
interface NotifyProps {
id?: string | number;
title?: string;
description?: string;
duration?: number;
position?: NotificationPosition;
type?: NotificationType;
style?: Sx;
icon?: IconName | [IconPrefix, IconName];
iconColor?: string;
}
export declare const notify: (data: NotifyProps) => void;
interface DefaultNotifyProps {
title?: string;
description?: string;
duration?: number;
position?: NotificationPosition;
status?: 'info' | 'warning' | 'success' | 'error';
id?: number;
}
export declare const defaultNotify: (data: DefaultNotifyProps) => void;
export {};