"use client";
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_UnstyledButton = require("../../UnstyledButton/UnstyledButton.cjs");
const require_Pagination_context = require("../Pagination.context.cjs");
const require_Pagination_module = require("../Pagination.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Pagination/PaginationControl/PaginationControl.tsx
const defaultProps = { withPadding: true };
const PaginationControl = require_factory.factory((_props) => {
	const { classNames, className, style, styles, vars, active, disabled, withPadding, mod, ...others } = require_use_props.useProps("PaginationControl", defaultProps, _props);
	const ctx = require_Pagination_context.usePaginationContext();
	const _disabled = disabled || ctx.disabled;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UnstyledButton.UnstyledButton, {
		disabled: _disabled,
		mod: [{
			active,
			disabled: _disabled,
			"with-padding": withPadding
		}, mod],
		...ctx.getStyles("control", {
			className,
			style,
			classNames,
			styles,
			active: !_disabled
		}),
		...others
	});
});
PaginationControl.classes = require_Pagination_module.default;
PaginationControl.displayName = "@mantine/core/PaginationControl";
//#endregion
exports.PaginationControl = PaginationControl;

//# sourceMappingURL=PaginationControl.cjs.map