"use client"; import { Progress } from "@heroui/progress"; import { Spacer } from "@heroui/spacer"; import { usePathname } from "next/navigation"; import React from "react"; import { VerticalSteps } from "./vertical-steps"; const steps = [ { title: "Send Invitation", description: "Enter the email address of the person you want to invite and send the invitation.", href: "/invitations/new", }, { title: "Review Invitation Details", description: "Review the invitation details and share the information required for the person to accept the invitation.", href: "/invitations/check-details", }, ]; export const WorkflowSendInvite = () => { const pathname = usePathname(); // Calculate current step based on pathname const currentStepIndex = steps.findIndex((step) => pathname.endsWith(step.href), ); const currentStep = currentStepIndex === -1 ? 0 : currentStepIndex; return (

Send invitation

Follow the steps to send an invitation to the users.

{/* Desktop: Full vertical steps */}
{/* Mobile: Compact current step indicator */}
Current: {steps[currentStep]?.title}
{steps[currentStep]?.description}
); };