"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useCarouselContext } from "./use-carousel-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/carousel/carousel-indicator.tsx
var splitIndicatorProps = createSplitProps();
var CarouselIndicator = forwardRef((props, ref) => {
	const [indicatorProps, localProps] = splitIndicatorProps(props, ["readOnly", "index"]);
	const mergedProps = mergeProps(useCarouselContext().getIndicatorProps(indicatorProps), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
CarouselIndicator.displayName = "CarouselIndicator";
//#endregion
export { CarouselIndicator };
