# This is the 1st commit message: first commit # This is the commit message #2: fixed cache
15 lines
No EOL
360 B
TypeScript
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 }
|
|
} |