"use client"; import { useSearchParams } from "next/navigation"; import { useEffect } from "react"; import { useI18n } from "@/core/i18n/hooks"; import { cn } from "@/lib/utils"; let waved = false; export function Welcome({ className }: { className?: string }) { const { t } = useI18n(); const searchParams = useSearchParams(); useEffect(() => { waved = true; }, []); return (
{searchParams.get("mode") === "skill" ? ( `✨ ${t.welcome.createYourOwnSkill} ✨` ) : (
👋
{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}

)}
)}
); }