UNPKG

@nu-art/thunder

Version:

Thunder - React & Typescript based frontend framework

13 lines 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); exports.ActionButton = function (props) { var _action; if (typeof props.action === "string") _action = function () { return window.open(props.action, "_blank"); }; else _action = props.action; return React.createElement("div", { style: { padding: 5 } }, React.createElement("img", { className: "clickable " + (typeof props.classCss === "string" ? props.classCss : ""), style: typeof props.classCss === "object" ? props.classCss : {}, src: props.icon, onClick: _action })); }; //# sourceMappingURL=ActionButton.js.map