import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { SVGIcon } from 'ca-ui-toolkit'; import './WelcomeLabel.scss'; export class WelcomeLabel extends Component{ static propTypes = { /** Custom class name(s) */ className: PropTypes.string, labels: PropTypes.object.isRequired, themeValues: PropTypes.object }; static defaultProps = { } constructor(props) { super(props); } renderLogo() { const { themeValues } = this.props; if (themeValues && themeValues.images && themeValues.images.brandIcon && themeValues.images.brandIcon !== 'common-CA_Avatar_Colour_64' ) { return (); } return ( ); } render() { return (
{ this.renderLogo() }
{this.props.labels.welcome}
{this.props.labels.secondaryWelcomeMsg}
); } }