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

// src/cli/components/common/confirm.tsx
init_esm_shims();
import { Box, Text } from "ink";
import { ConfirmInput } from "@inkjs/ui";
import { jsx, jsxs } from "react/jsx-runtime";
var Confirm = ({
  message,
  onConfirm,
  onCancel,
  defaultValue = false
}) => /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
  /* @__PURE__ */ jsx(Text, { children: message }),
  /* @__PURE__ */ jsx(
    ConfirmInput,
    {
      onConfirm,
      onCancel,
      defaultChoice: defaultValue ? "confirm" : "cancel"
    }
  )
] });

export {
  Confirm
};
//# sourceMappingURL=chunk-N6S7ZRIL.js.map