#!/usr/bin/env node
import {
  CLI_COLORS
} from "./chunk-6OWHQ7HM.js";
import {
  init_esm_shims
} from "./chunk-DHET7RCE.js";

// src/cli/components/wizard/section-progress.tsx
init_esm_shims();
import { Box, Text } from "ink";
import { jsx, jsxs } from "react/jsx-runtime";
var SectionProgress = ({
  label,
  current,
  index,
  total,
  next
}) => {
  const isLast = index === total;
  const rightText = isLast ? "Last step" : `Next: ${next}`;
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "row", justifyContent: "space-between", marginBottom: 1, children: [
    /* @__PURE__ */ jsxs(Text, { children: [
      /* @__PURE__ */ jsxs(Text, { bold: true, children: [
        label,
        ":"
      ] }),
      " ",
      /* @__PURE__ */ jsx(Text, { color: CLI_COLORS.PRIMARY, children: current })
    ] }),
    /* @__PURE__ */ jsxs(Text, { children: [
      /* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
        "[",
        index,
        "/",
        total,
        "]"
      ] }),
      " ",
      /* @__PURE__ */ jsx(Text, { dimColor: isLast, children: rightText })
    ] })
  ] });
};

export {
  SectionProgress
};
//# sourceMappingURL=chunk-AJJJE7F7.js.map