import { jsx } from "react/jsx-runtime";
import { ReferenceLine } from "recharts";
import { AxisTick } from "./AxisTick.js";
function labeledReferenceLine({ y, stroke, background, ...rest }, label) {
  return /* @__PURE__ */ jsx(
    ReferenceLine,
    {
      y,
      ifOverflow: "extendDomain",
      stroke: `var(--theme-ui-colors-${stroke})`,
      label: ({ viewBox }) => /* @__PURE__ */ jsx(AxisTick, { axis: "y", x: 0, y: viewBox.y, background, label: true, children: label }),
      ...rest
    }
  );
}
export {
  labeledReferenceLine
};
