index.js 740 Bytes
Newer Older
1 2 3 4
import React from 'react';
import classNames from 'classnames';
import styles from './index.less';

ZHAO Jinxiang's avatar
ZHAO Jinxiang committed
5
const GlobalFooter = ({ className, links, copyright }) => {
6 7 8
  const clsString = classNames(styles.globalFooter, className);
  return (
    <div className={clsString}>
jim's avatar
jim committed
9 10 11
      {links && (
        <div className={styles.links}>
          {links.map(link => (
jim's avatar
jim committed
12 13 14 15 16 17
            <a
              key={link.key}
              title={link.key}
              target={link.blankTarget ? '_blank' : '_self'}
              href={link.href}
            >
jim's avatar
jim committed
18 19 20 21 22
              {link.title}
            </a>
          ))}
        </div>
      )}
23 24 25 26
      {copyright && <div className={styles.copyright}>{copyright}</div>}
    </div>
  );
};
ZHAO Jinxiang's avatar
ZHAO Jinxiang committed
27 28

export default GlobalFooter;