"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBreadcrumbPaths = getBreadcrumbPaths;
const lodash_1 = require("lodash");
function getBreadcrumbPaths(paths) {
    return (paths
        .filter((path) => {
        if ((0, lodash_1.isNil)(path.active)) {
            return true;
        }
        return path.active();
    })
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        .map(({ active, ...path }) => path));
}
