@studion/infra-code-blocks
Version:
Studion common infra components
9 lines (8 loc) • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createLimitVariable = createLimitVariable;
const helpers_1 = require("./helpers");
const DEFAULT_LIMITS = [20, 50, 100, 250, 500, 1000];
function createLimitVariable(options = {}, limits = DEFAULT_LIMITS) {
return (0, helpers_1.createCustomCSVVariable)('limit', 'Limit', limits, limits[0], options);
}