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.
Readarr/frontend/src/Artist/Details/ArtistDetailsLinks.js

49 lines
1.0 KiB

import PropTypes from 'prop-types';
import React from 'react';
import { kinds, sizes } from 'Helpers/Props';
import Label from 'Components/Label';
import Link from 'Components/Link/Link';
import styles from './ArtistDetailsLinks.css';
function ArtistDetailsLinks(props) {
const {
links
} = props;
return (
<div className={styles.links}>
{links.map((link, index) => {
return (
<span key={index}>
<Link className={styles.link}
to={link.url}
key={index}
>
<Label
className={styles.linkLabel}
kind={kinds.INFO}
size={sizes.LARGE}
>
{link.name}
</Label>
</Link>
{(index > 0 && index % 5 === 0) &&
<br />
}
</span>
);
})}
</div>
);
}
ArtistDetailsLinks.propTypes = {
links: PropTypes.arrayOf(PropTypes.object).isRequired
};
export default ArtistDetailsLinks;