"use client"; import { useTranslation } from "react-i18next"; import { motion } from "framer-motion"; import { Building, Home } from "lucide-react"; const data = [ { colors: "from-amber-500 to-amber-600", titleKey: "register.owner.step1Title", title2Key: "register.owner.step1bTitle", descKey: "register.owner.step1Desc", desc2Key: "register.owner.step1bDesc", icon: , }, { colors: "from-blue-500 to-blue-600", titleKey: "register.tenant.step1Title", title2Key: "register.tenant.step2Title", descKey: "register.tenant.step1Desc", desc2Key: "register.tenant.step2Desc", icon: , }, ]; export default function HeaderOfForm({ step = 1, num = 0 }) { const { t } = useTranslation(); const currentData = data[num] || data[0]; return (
{data[num].icon}

{t(step === 1 ? t(currentData.titleKey) : t(currentData.title2Key))}

{t(step === 1 ? t(currentData.descKey) : t(currentData.desc2Key))}

); }