You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
746 B
29 lines
746 B
|
7 years ago
|
import React from 'react';
|
||
|
|
import classNames from 'classnames';
|
||
|
|
import styles from './index.less';
|
||
|
|
|
||
|
|
const GlobalFooter = ({ className, links, copyright }) => {
|
||
|
|
const clsString = classNames(styles.globalFooter, className);
|
||
|
|
return (
|
||
|
|
<footer className={clsString}>
|
||
|
|
{links && (
|
||
|
|
<div className={styles.links}>
|
||
|
|
{links.map(link => (
|
||
|
|
<a
|
||
|
|
key={link.key}
|
||
|
|
title={link.key}
|
||
|
|
target={link.blankTarget ? '_blank' : '_self'}
|
||
|
|
href={link.href}
|
||
|
|
>
|
||
|
|
{link.title}
|
||
|
|
</a>
|
||
|
|
))}
|
||
|
|
</div>
|
||
|
|
)}
|
||
|
|
{copyright && <div className={styles.copyright}>{copyright}</div>}
|
||
|
|
</footer>
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export default GlobalFooter;
|