blob: 911364fe952d5a50bf39608c40145a05e9212b80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { toast } from "sonner"
import { useNotificationStore } from "./stores/notification-store"
export function notify(
message: string,
type: "info" | "success" | "error" = "info",
actionUrl?: string
) {
toast(message)
useNotificationStore.getState().addNotification(message, type, actionUrl)
}
|