Browse Source

feat: Added basic static info webpage banner

master
Denis Thiessen 6 months ago
parent
commit
a630c0dce9
  1. 23
      src/components/webpage_container/WebpageBanner.jsx

23
src/components/webpage_container/WebpageBanner.jsx

@ -0,0 +1,23 @@
import { Component } from "react";
import { getTranslation } from "../../core/i18n/I18NHandler";
import { Note } from '@geist-ui/core';
var bannerContent = "";
export default class WebpageBanner extends Component {
constructor(props) {
super(props);
bannerContent = getTranslation(props.translationKey);
}
setBannerContent(content) {
bannerContent = content;
}
render() {
return (
<Note type="warning" label={false}>{bannerContent}</Note>
);
}
}
Loading…
Cancel
Save