@trellixio/roaster-coffee
Version:
Beans' product component library
13 lines • 397 B
TypeScript
import { ToastProps } from '../../types';
export default function useToastsState({ limit }: {
limit: number;
}): {
toasts: ToastProps[];
queue: ToastProps[];
showToast: (toast: ToastProps) => string;
updateToast: (toast: ToastProps) => void;
hideToast: (id: string) => void;
cleanQueue: () => void;
clean: () => void;
};
//# sourceMappingURL=useToastsState.d.ts.map