import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import T from "../t/t.js";
import { usePaginationContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/pagination/paginationResults.tsx
/** Displays an action button within the Pagination. */
const PaginationResults = vui((props, ref) => {
	const { children, className, ...rest } = props;
	const { count, rangeEnd, rangeStart } = usePaginationContext();
	const styles = useStyleConfig("Pagination", usePaginationContext());
	return /* @__PURE__ */ jsx(T, {
		className: cs("vui-paginationResults", className),
		ref,
		size: "sm",
		...styles.results,
		...rest,
		variant: "navigation",
		children: children ?? `Showing ${rangeStart} to ${rangeEnd} of ${count} results.`
	});
});
PaginationResults.displayName = "PaginationResults";

//#endregion
export { PaginationResults as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=paginationResults.js.map