"use client";
import { ark } from "../factory.js";
import { useFieldsetContext } from "./use-fieldset-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/fieldset/fieldset-legend.tsx
var FieldsetLegend = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useFieldsetContext().getLegendProps(), props);
	return /* @__PURE__ */ jsx(ark.legend, {
		...mergedProps,
		ref
	});
});
FieldsetLegend.displayName = "FieldsetLegend";
//#endregion
export { FieldsetLegend };
