38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
|
|
var Dash;
|
||
|
|
export default window.Dash = Dash = class Dash extends React.Component {
|
||
|
|
constructor(props) {
|
||
|
|
super(props);
|
||
|
|
this.state = {
|
||
|
|
data: props.data
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
var column, data, link, ref;
|
||
|
|
data = this.state.data;
|
||
|
|
link = data.link;
|
||
|
|
column = (ref = data.column) != null ? ref : '';
|
||
|
|
return /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "dash " + column
|
||
|
|
}, /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "block white"
|
||
|
|
}, /*#__PURE__*/React.createElement(DashImage, {
|
||
|
|
image: data.image,
|
||
|
|
ratio: data.ratio,
|
||
|
|
height: data.height,
|
||
|
|
link: link
|
||
|
|
}), /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "body"
|
||
|
|
}, /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "cont"
|
||
|
|
}, /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "t"
|
||
|
|
}, /*#__PURE__*/React.createElement(DashTitle, {
|
||
|
|
title: data.title,
|
||
|
|
link: link
|
||
|
|
}), data.text != null && data.text !== '' ? /*#__PURE__*/React.createElement(DashText, {
|
||
|
|
text: data.text
|
||
|
|
}) : void 0)))));
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|