"use strict";

import React, { Component } from 'react';
import { LayoutComponent } from "./LayoutComponent.js";
import { connect } from "../connect.js";
import { jsx as _jsx } from "react/jsx-runtime";
export const Stack = connect(class extends Component {
  render() {
    const children = this.props.layoutNode.children;
    return children.map((child, i) => {
      return /*#__PURE__*/_jsx(LayoutComponent, {
        layoutNode: child,
        backButton: i > 0
      }, child.nodeId);
    });
  }
});
//# sourceMappingURL=Stack.js.map