24 lines
583 B
JavaScript
24 lines
583 B
JavaScript
|
|
var Title;
|
||
|
|
export default window.Title = Title = class Title extends React.Component {
|
||
|
|
constructor(props) {
|
||
|
|
super(props);
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
var a, more_title, ref;
|
||
|
|
a = null;
|
||
|
|
|
||
|
|
if (this.props.more != null && this.props.more !== '') {
|
||
|
|
more_title = (ref = this.props.more_text) != null ? ref : "Смотреть всё";
|
||
|
|
a = /*#__PURE__*/React.createElement("a", {
|
||
|
|
href: this.props.more,
|
||
|
|
class: "more"
|
||
|
|
}, more_title);
|
||
|
|
}
|
||
|
|
|
||
|
|
return /*#__PURE__*/React.createElement("div", {
|
||
|
|
className: "h"
|
||
|
|
}, this.props.title, a);
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|