"use client"; import { Progress, Spacer } from "@nextui-org/react"; import { usePathname } from "next/navigation"; import React from "react"; import { VerticalSteps } from "./vertical-steps"; const steps = [ { title: "Add your cloud account", description: "Select the cloud provider of the account you want to connect and choose whether to use IAM role or credentials for access.", href: "/providers/connect-account", }, { title: "Add credentials to your cloud account", description: "Add the credentials needed to connect to your cloud account.", href: "/providers/add-credentials", }, { title: "Test connection", description: "Test your connection to verify that the credentials provided are valid for accessing your cloud account.", href: "/providers/test-connection", }, { title: "Success", description: "Your cloud account has been successfully connected and the scan has been launched.", href: "/providers/launch-scan", }, ]; export const WorkflowAddProvider = () => { 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 (

Add a cloud account

Follow the steps to configure your cloud account. This allows you to launch the first scan when the process is complete.

); };