File size: 302 Bytes
f6d96e2
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { toast } from 'sonner';

export function useToast() {
  return {
    error: (message: string) => toast.error(message),
    success: (message: string) => toast.success(message),
    info: (message: string) => toast.info(message),
    warning: (message: string) => toast.warning(message),
  };
}