"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useTimerContext } from "./use-timer-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/timer/timer-item.tsx
var splitItemProps = createSplitProps();
var TimerItem = forwardRef((props, ref) => {
	const [itemProps, localProps] = splitItemProps(props, ["type"]);
	const timer = useTimerContext();
	const mergedProps = mergeProps(timer.getItemProps(itemProps), localProps);
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref,
		children: timer.formattedTime[itemProps.type]
	});
});
TimerItem.displayName = "TimerItem";
//#endregion
export { TimerItem };
