import { motion } from "framer-motion"; import { useTranslation } from "react-i18next"; import { useState } from "react"; const FeaturesSection = () => { const { t } = useTranslation(); const [hoveredIndex, setHoveredIndex] = useState(null); const features = [ { name: t("landingPage.outgoingRecords"), description: t("landingPage.outgoingRecordsDesc"), icon: ( ), color: "bg-primary", }, { name: t("landingPage.incomingRecords"), description: t("landingPage.incomingRecordsDesc"), icon: ( ), color: "bg-primary-500", }, { name: t("landingPage.approvalWorkflows"), description: t("landingPage.approvalWorkflowsDesc"), icon: ( ), color: "bg-[#3B82F6]", }, { name: t("landingPage.interactiveDashboard"), description: t("landingPage.interactiveDashboardDesc"), icon: ( ), color: "bg-[#8B5CF6]", }, { name: t("landingPage.organizedFolders"), description: t("landingPage.organizedFoldersDesc"), icon: ( ), color: "bg-[#EC4899]", }, { name: t("landingPage.securityAccessControl"), description: t("landingPage.securityAccessControlDesc"), icon: ( ), color: "bg-[#F59E0B]", }, ]; return (
{t("landingPage.powerfulFeaturesTitle")}

{t("landingPage.powerfulFeaturesSubtitle")} {t("landingPage.documentWorkflow")}

{t("landingPage.powerfulFeaturesDesc")}

{features.map((feature, index) => ( setHoveredIndex(index)} onHoverEnd={() => setHoveredIndex(null)} className="relative" >
{feature.icon}

{feature.name}

{feature.description}

))}
{/* Stats Section */}
{[ { number: "95%", label: t("landingPage.fasterApproval") }, { number: "10x", label: t("landingPage.auditReady") }, { number: "100%", label: t("landingPage.organizedRecords") }, ].map((stat, index) => (

{stat.number}

{stat.label}

))}
); }; export default FeaturesSection;