diff --git a/bun.lockb b/bun.lockb index 07a6f08..2daefb3 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 95b4f30..99a379b 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "react-hook-form": "^7.54.2", "react-icons": "^5.4.0", "server-only": "^0.0.1", + "sonner": "^1.7.4", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", "zod": "^3.24.1" diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx new file mode 100644 index 0000000..de6f664 --- /dev/null +++ b/src/components/ui/sonner.tsx @@ -0,0 +1,32 @@ +"use client"; + +import { useTheme } from "next-themes"; +import { Toaster as Sonner } from "sonner"; + +type ToasterProps = React.ComponentProps; + +const Toaster = ({ ...props }: ToasterProps) => { + const { theme = "system" } = useTheme(); + + return ( + + ); +}; + +export { Toaster };