import { ProgressTabs, Text, Button } from "@medusajs/ui" import * as React from "react" export default function ProgressTabsControlled() { const steps = ["general", "shipping", "payment"] const [active, setActive] = React.useState("general") const currentIndex = steps.indexOf(active) const handleNext = () => { if (currentIndex < steps.length - 1) { setActive(steps[currentIndex + 1]) } } const handlePrev = () => { if (currentIndex > 0) { setActive(steps[currentIndex - 1]) } } return (
General Shipping Payment
This is the General step. This is the Shipping step. This is the Payment step.
) }