import { useTranslation } from "react-i18next"; const WorkflowSection = () => { const { t } = useTranslation(); const steps = [ { id: "01", name: t("landingPage.recordCreation"), description: t("landingPage.recordCreationDesc"), status: "complete", icon: ( ), }, { id: "02", name: t("landingPage.teamLeaderReview"), description: t("landingPage.teamLeaderReviewDesc"), status: "complete", icon: ( ), }, { id: "03", name: t("landingPage.directorApproval"), description: t("landingPage.directorApprovalDesc"), status: "current", icon: ( ), }, { id: "04", name: t("landingPage.deputyHeadReview"), description: t("landingPage.deputyHeadReviewDesc"), status: "upcoming", icon: ( ), }, { id: "05", name: t("landingPage.recordOfficerProcessing"), description: t("landingPage.recordOfficerProcessingDesc"), status: "upcoming", icon: ( ), }, ]; return (
{t("landingPage.streamlinedProcess")}

{t("landingPage.recordManagementApprovalWorkflows")} {t("landingPage.workflow")}

{t("landingPage.smartOfficeDescription")}

{/* Progress bar */}
    {steps.map((step, stepIdx) => (
  • {/* Step indicator */}
    {step.status === "complete" ? ( ) : step.status === "current" ? (
    ) : step.status === "upcoming" ? ( {step.id} ) : ( {step.icon} )}
    {/* Step content */}
    {t("landingPage.step")} {step.id}

    {step.name}

    {step.status === "current" && ( {t("statusBar.In Progress")} )}

    {step.description}

    {step.status === "current" && (
    )}
  • ))}
{/* Features section */}

{t("landingPage.workflowAutomationBenefits")}

{t("landingPage.workflowAutomationDesc")}

{t("landingPage.fasterApprovals")}

{t("landingPage.reduceDelays")}

{t("landingPage.auditTrail")}

{t("landingPage.completeRecord")}

{t("landingPage.advancedFeatures")}

{t("landingPage.slaMonitoring")}

{t("landingPage.slaMonitoringDesc")}

{t("landingPage.conditionalRouting")}

{t("landingPage.conditionalRoutingDesc")}

{t("delegation.title")}

{t("landingPage.temporaryApprovalDelegation")}

); }; export default WorkflowSection;