Repository URL to install this package:
|
Version:
2.1.2-perf.5 ▾
|
import React from 'react';
import { LabelWithAction } from "../../../../../components/molecules/LabelWithAction";
import { InputChain } from "../../InputChain";
class LabelInput extends InputChain {
static isSatisfiedByProps(props) {
return props.type === 'label';
}
render() {
const props = this.get('props');
const state = this.get('state');
console.log('LabelInput', props);
const {
onClick,
classes,
icon,
labelText,
text,
value,
label
} = props;
const computedText = labelText || text || value || label;
const wrapperClass = props.wrapperClass || '';
const attributes = Object.assign({}, props, {
text: computedText,
onClick,
classes,
icon,
wrapperClass
});
return React.createElement(LabelWithAction, Object.assign({}, attributes, {
key: computedText
}));
}
}
export { LabelInput };
export default LabelInput; //# sourceMappingURL=LabelInput.js.map