index.js 746 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
  const clsString = classNames(styles.globalFooter, className);
  return (
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
8
    <footer 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
      {copyright && <div className={styles.copyright}>{copyright}</div>}
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
24
    </footer>
25 26
  );
};
ZHAO Jinxiang's avatar
ZHAO Jinxiang committed
27 28

export default GlobalFooter;