Lidarr/frontend/src/Artist/Details/ArtistTags.js

31 lines
581 B
JavaScript

import PropTypes from 'prop-types';
import React from 'react';
import { kinds, sizes } from 'Helpers/Props';
import Label from 'Components/Label';
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;