analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
17 lines • 632 B
TypeScript
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
type ToastData = {
id: string;
title: string;
description?: string;
variant?: 'solid' | 'outlined';
action?: 'warning' | 'success' | 'info';
position?: ToastPosition;
};
type ToastStore = {
toasts: ToastData[];
addToast: (toast: Omit<ToastData, 'id'>) => void;
removeToast: (id: string) => void;
};
declare const useToastStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ToastStore>>;
export default useToastStore;
//# sourceMappingURL=ToastStore.d.ts.map