import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
import { FormLabel } from '../../form.mjs';
import { cn } from '../../../lib/utils.mjs';

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

export { AutoFormLabel as default };
