UNPKG

603 BJavaScriptView Raw
1import React, {PureComponent} from 'react';
2import PropTypes from 'prop-types';
3import classNames from 'classnames';
4
5import Icon, {Size} from '../icon/icon';
6
7import styles from './header.css';
8
9export default class Logo extends PureComponent {
10 static Size = Size
11
12 static propTypes = {
13 className: PropTypes.string
14 }
15
16 static defaultProps = {
17 size: Size.Size48
18 }
19
20 render() {
21 const {className, ...restProps} = this.props;
22 const classes = classNames(styles.logo, className);
23
24 return (
25 <div className={classes}>
26 <Icon {...restProps}/>
27 </div>
28 );
29 }
30}