2 lines
843 B
JavaScript
2 lines
843 B
JavaScript
import{t as o,l as i,z as m,D as y,E as f}from"./index-CEmnTf-r.js";var v=function(t){o(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,d=n.className,c=n.style,s=n.buttons,p=n.render,u=n.classnames,a=n.testIdBuilder;return i.createElement("div",{className:u("OperationField",d),style:c},Array.isArray(s)?s.map(function(r,l){return p("".concat(l),m({type:"button",size:r.size||"sm",level:r.level||(r.icon&&!r.label?"link":"")},r),{key:l,testIdBuilder:a==null?void 0:a.getChild("button-".concat(r.testid||r.id||l))})}):null)},e.propsList=["buttons","label"],e.defaultProps={},e}(i.Component),F=function(t){o(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e=y([f({type:"operation"})],e),e}(v);export{v as OperationField,F as OperationFieldRenderer};
|