"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePageIndicator = void 0;
exports.usePageIndicator = function (pages) {
    return __spreadArrays(Array(pages.total)).map(function (_, num) { return ({
        key: "page-" + num,
        num: num,
        current: num + 1 === pages.current,
        className: num + 1 === pages.current ? 'lwc-current' : ''
    }); });
};
