export const parseTransitions = (transitions, path, stateName, statesNames, defaultName) => transitions.map((transition) => {
    var _a;
    return ({
        key: transition.id,
        title: `${stateName} -> ${(_a = statesNames[transition.state]) !== null && _a !== void 0 ? _a : defaultName}`,
        isLeaf: true,
        path: path.concat('transitions', `id:${transition.id}`),
    });
});
export const getSelectedPaths = (paths) => paths.filter((path) => path.at(-2) === 'transitions');
