'use strict';

const index = require('./index-c157949f.js');
const codeUtils = require('./codeUtils-d7b1edd2.js');

const CodeExecuteStatus = (props) => {
  var _a;
  if (props.nodeKind === 'Parameter') {
    return (index.h("stencila-icon", { icon: "asterisk", color: "neutral-500, #6e7591", class: "executeStatus" }));
  }
  if (props.executeRequired === undefined ||
    props.executeStatus === undefined) {
    return index.h(index.Fragment, null);
  }
  const status = codeUtils.executionIconByStatus(props.executeStatus, props.executeRequired);
  return (index.h("stencila-tooltip", { text: status.title, slot: props.slot, position: "right-end" },
    index.h("stencila-icon", { icon: status.icon, color: status.color, class: `executeStatus executeRequired-${props.executeRequired} ${(_a = props.executeStatus) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` })));
};

exports.CodeExecuteStatus = CodeExecuteStatus;

//# sourceMappingURL=codeExecuteStatus-30075fbb.js.map