"use client";
const require_carousel_anatomy = require("./carousel.anatomy.cjs");
const require_factory = require("../factory.cjs");
const require_use_carousel_context = require("./use-carousel-context.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/carousel/carousel-autoplay-indicator.tsx
var parts = require_carousel_anatomy.carouselAnatomy.build();
var CarouselAutoplayIndicator = (0, react.forwardRef)((props, ref) => {
	const { children, fallback, ...restProps } = props;
	const carousel = require_use_carousel_context.useCarouselContext();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.span, {
		ref,
		...parts.autoplayIndicator.attrs,
		...restProps,
		children: carousel.isPlaying ? children : fallback
	});
});
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
//#endregion
exports.CarouselAutoplayIndicator = CarouselAutoplayIndicator;
