ghost-listmonk-connector/ui/hooks/useCustomToast.ts
troneras 1fd7dad8e4 # This is a combination of 2 commits.
# This is the 1st commit message:

first commit

# This is the commit message #2:

fixed cache
2024-08-21 02:08:01 +02:00

15 lines
No EOL
360 B
TypeScript

import { useToast } from "@/components/ui/use-toast"
export function useCustomToast() {
const { toast } = useToast()
const showToast = (title: string, description: string, variant: "default" | "destructive" = "default") => {
toast({
title,
description,
variant,
})
}
return { showToast }
}