@defikitdotnet/education-module-ai
Version:
AI Education Module using Agent Framework
13 lines (12 loc) • 637 B
TypeScript
import { type ToastT } from "sonner";
export type ToastProps = ToastT & {
variant?: "default" | "destructive";
};
export declare function useToast(): {
toast: ({ variant, ...props }: ToastProps) => string | number | undefined;
dismiss: (toastId?: string) => string | number;
error: (message: string, props?: Omit<ToastProps, "variant">) => string | number;
success: (message: string, props?: Omit<ToastProps, "variant">) => string | number;
warning: (message: string, props?: Omit<ToastProps, "variant">) => string | number;
info: (message: string, props?: Omit<ToastProps, "variant">) => string | number;
};