UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

20 lines (17 loc) 617 B
import * as zustand from 'zustand'; 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: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>; export { useToastStore as default };