"use client"; import { useSearchParams } from "next/navigation"; import { useI18n } from "@/core/i18n/hooks"; import { cn } from "@/lib/utils"; export function Welcome({ className }: { className?: string }) { const { t } = useI18n(); const searchParams = useSearchParams(); 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}

)}
)}
); }