'use strict';

const jsxRuntime = require('react/jsx-runtime');
const form = require('../../form.cjs');
const utils = require('../../../lib/utils.cjs');

function AutoFormLabel({
  label,
  isRequired,
  className
}) {
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(form.FormLabel, { className: utils.cn(className), children: [
    label,
    isRequired && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-destructive", children: " *" })
  ] }) });
}

module.exports = AutoFormLabel;
