@mopinion/survey
Version:
Collect customer feedback with the Mopinion survey library
26 lines (25 loc) • 704 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = HoneyBot;
var _preact = require("preact");
function HoneyBot(_ref) {
var state = _ref.state,
setHoneyBotValue = _ref.setHoneyBotValue,
_id = _ref._id;
return (0, _preact.h)("div", {
className: "input-wrap"
}, (0, _preact.h)("input", {
type: "text",
id: "element-special_input-".concat(state.id, "-").concat(_id),
value: state.value,
onInput: function onInput(event) {
return setHoneyBotValue(event.target.value);
},
onChange: function onChange(event) {
return setHoneyBotValue(event.target.value);
}
}));
}
//# sourceMappingURL=HoneyBot.js.map