From b24ec03184e51f2c7c7f812bfe9f50bd6608d38e Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 16 Aug 2025 04:09:12 +0000 Subject: [PATCH] Fix corrupted use-aethex-toast.ts file cgen-6bcd2d7d09c041949156a387009b7d4c --- client/hooks/use-aethex-toast.ts | 50 +++++++++++--------------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/client/hooks/use-aethex-toast.ts b/client/hooks/use-aethex-toast.ts index d8a38da6..663fe38d 100644 --- a/client/hooks/use-aethex-toast.ts +++ b/client/hooks/use-aethex-toast.ts @@ -1,5 +1,4 @@ import { toast as baseToast } from "@/components/ui/use-toast"; -import { Zap, CheckCircle, AlertTriangle, Info, Sparkles } from "lucide-react"; interface AethexToastOptions { title?: string; @@ -10,12 +9,7 @@ interface AethexToastOptions { export const useAethexToast = () => { const success = (options: AethexToastOptions) => { return baseToast({ - title: ( -
- - {options.title || "Success"} -
- ), + title: `✅ ${options.title || "Success"}`, description: options.description, duration: options.duration || 5000, variant: "success" as any, @@ -24,12 +18,7 @@ export const useAethexToast = () => { const error = (options: AethexToastOptions) => { return baseToast({ - title: ( -
- - {options.title || "Error"} -
- ), + title: `⚡ ${options.title || "Error"}`, description: options.description, duration: options.duration || 5000, variant: "destructive", @@ -38,12 +27,7 @@ export const useAethexToast = () => { const warning = (options: AethexToastOptions) => { return baseToast({ - title: ( -
- - {options.title || "Warning"} -
- ), + title: `⚠️ ${options.title || "Warning"}`, description: options.description, duration: options.duration || 5000, variant: "warning" as any, @@ -52,12 +36,7 @@ export const useAethexToast = () => { const info = (options: AethexToastOptions) => { return baseToast({ - title: ( -
- - {options.title || "Information"} -
- ), + title: `ℹ️ ${options.title || "Information"}`, description: options.description, duration: options.duration || 5000, variant: "info" as any, @@ -66,24 +45,29 @@ export const useAethexToast = () => { const aethex = (options: AethexToastOptions) => { return baseToast({ - title: ( -
- - {options.title || "AeThex OS"} -
- ), + title: `✨ ${options.title || "AeThex OS"}`, description: options.description, duration: options.duration || 6000, variant: "aethex" as any, }); }; + const system = (message: string) => { + return baseToast({ + title: "🔧 AeThex OS", + description: message, + duration: 4000, + variant: "aethex" as any, + }); + }; + return { success, error, warning, info, aethex, - toast: baseToast, // Fallback to original toast + system, + toast: baseToast, }; -}; \ No newline at end of file +};