|
@ -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> |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
} |