import { Card, WordPressLogo } from '@automattic/components';
import PropTypes from 'prop-types';
import { Component } from 'react';
import './style.scss';
class DomainsLandingHeader extends Component {
static propTypes = {
reseller: PropTypes.string,
title: PropTypes.string,
};
/**
* Gets the header logo depending on the reseller
*
* If the reseller is undefined, returns the WordPress logo.
*/
getLogo = () => {
const tumblrLogo = (
);
switch ( this.props.reseller ) {
case 'tumblr_live':
case 'tumblr_ote':
return tumblrLogo;
default:
return ;
}
};
render() {
const { title } = this.props;
return (
{ this.getLogo() }
{ title && { title }
}
);
}
}
export default DomainsLandingHeader;