23 lines
456 B
JavaScript
23 lines
456 B
JavaScript
var DashTitle;
|
|
export default window.DashTitle = DashTitle = class DashTitle extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
render() {
|
|
var link, title;
|
|
title = this.props.title;
|
|
link = this.props.link;
|
|
|
|
if (link) {
|
|
title = /*#__PURE__*/React.createElement("a", {
|
|
href: link
|
|
}, title);
|
|
}
|
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
className: "h1 mb0"
|
|
}, title);
|
|
}
|
|
|
|
}; |