"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.List = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const List_1 = __importDefault(require("@mui/material/List"));
const PageDotOutlineMd_1 = require("../../../../icons/PageDotOutlineMd");
const ItemButton_1 = require("../ItemButton");
const List = (props) => {
    const { collapsedIn, items } = props;
    return ((0, jsx_runtime_1.jsx)(List_1.default, { disablePadding: true, children: items.map((item) => {
            const [key, value] = item;
            const { text, active, component, counter } = value;
            return ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(ItemButton_1.ItemButton, { collapsedIn: collapsedIn, selected: active, text: text, icon: (0, jsx_runtime_1.jsx)(PageDotOutlineMd_1.PageDotOutlineMd, {}), component: component, counter: counter, isNested: true }) }, key));
        }) }));
};
exports.List = List;
