index.js 654 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 12 13 14 15 16 17
      {links && (
        <div className={styles.links}>
          {links.map(link => (
            <a key={link.key} target={link.blankTarget ? '_blank' : '_self'} href={link.href}>
              {link.title}
            </a>
          ))}
        </div>
      )}
18 19 20 21
      {copyright && <div className={styles.copyright}>{copyright}</div>}
    </div>
  );
};
ZHAO Jinxiang's avatar
ZHAO Jinxiang committed
22 23

export default GlobalFooter;