"use client"; import { useSearchParams } from "next/navigation"; import { useEffect, useMemo } from "react"; import { useI18n } from "@/core/i18n/hooks"; import { cn } from "@/lib/utils"; import { AuroraText } from "../ui/aurora-text"; let waved = false; export function Welcome({ className, mode, }: { className?: string; mode?: "ultra" | "pro" | "thinking" | "flash"; }) { const { t } = useI18n(); const searchParams = useSearchParams(); const isUltra = useMemo(() => mode === "ultra", [mode]); const colors = useMemo(() => { if (isUltra) { return ["#efefbb", "#e9c665", "#e3a812"]; } return ["var(--color-foreground)"]; }, [isUltra]); useEffect(() => { waved = true; }, []); return (
{searchParams.get("mode") === "skill" ? ( `✨ ${t.welcome.createYourOwnSkill} ✨` ) : (
{isUltra ? "🚀" : "👋"}
{t.welcome.greeting}
)}
{searchParams.get("mode") === "skill" ? (
{t.welcome.createYourOwnSkillDescription.includes("\n") ? (
              {t.welcome.createYourOwnSkillDescription}
            
) : (

{t.welcome.createYourOwnSkillDescription}

)}
) : (
{t.welcome.description.includes("\n") ? (
              {t.welcome.description}
            
) : (

{t.welcome.description}

)}
)}
); }