mirror of https://github.com/lidarr/Lidarr
31 lines
581 B
JavaScript
31 lines
581 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Label from 'Components/Label';
|
|
import { kinds, sizes } from 'Helpers/Props';
|
|
|
|
function ArtistTags({ tags }) {
|
|
return (
|
|
<div>
|
|
{
|
|
tags.map((tag) => {
|
|
return (
|
|
<Label
|
|
key={tag}
|
|
kind={kinds.INFO}
|
|
size={sizes.LARGE}
|
|
>
|
|
{tag}
|
|
</Label>
|
|
);
|
|
})
|
|
}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
ArtistTags.propTypes = {
|
|
tags: PropTypes.arrayOf(PropTypes.string).isRequired
|
|
};
|
|
|
|
export default ArtistTags;
|