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.
31 lines
581 B
31 lines
581 B
7 years ago
|
import PropTypes from 'prop-types';
|
||
|
import React from 'react';
|
||
|
import { kinds, sizes } from 'Helpers/Props';
|
||
|
import Label from 'Components/Label';
|
||
|
|
||
7 years ago
|
function ArtistTags({ tags }) {
|
||
7 years ago
|
return (
|
||
|
<div>
|
||
|
{
|
||
|
tags.map((tag) => {
|
||
|
return (
|
||
|
<Label
|
||
|
key={tag}
|
||
|
kind={kinds.INFO}
|
||
|
size={sizes.LARGE}
|
||
|
>
|
||
|
{tag}
|
||
|
</Label>
|
||
|
);
|
||
|
})
|
||
|
}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
7 years ago
|
ArtistTags.propTypes = {
|
||
7 years ago
|
tags: PropTypes.arrayOf(PropTypes.string).isRequired
|
||
|
};
|
||
|
|
||
7 years ago
|
export default ArtistTags;
|