1 | import React, {PureComponent} from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import classNames from 'classnames';
|
4 |
|
5 | import Icon, {Size} from '../icon/icon';
|
6 |
|
7 | import styles from './header.css';
|
8 |
|
9 | export 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 | }
|