index.js 474 Bytes
Newer Older
1 2 3 4 5 6
import React, { Component } from 'react';
import classNames from 'classnames';
import styles from './index.less';

export default class FooterToolbar extends Component {
  render() {
7
    const { children, className, extra, ...restProps } = this.props;
8
    return (
jim's avatar
jim committed
9
      <div className={classNames(className, styles.toolbar)} {...restProps}>
10 11 12 13 14 15
        <div className={styles.left}>{extra}</div>
        <div className={styles.right}>{children}</div>
      </div>
    );
  }
}