import React from "react";
import ChildWindow from "./ChildWindow";
import ProcessStatistics from "./ProcessStatistics";
const Process = ({ proc, onClick, collapsed }) => {
    var _a, _b;
    return (React.createElement("div", { className: "process" },
        React.createElement(ProcessStatistics, { stats: proc.statistics, onClick: onClick, collapsible: !!((_a = proc.childWindows) === null || _a === void 0 ? void 0 : _a.length), collapsed: collapsed }),
        !collapsed && ((_b = proc.childWindows) === null || _b === void 0 ? void 0 : _b.map((cw, j) => React.createElement(ChildWindow, { key: j, cw: cw })))));
};
export default Process;
//# sourceMappingURL=Process.js.map