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