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

32 lines
620 B
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
import PropTypes from 'prop-types';
import React from 'react';
import { kinds, sizes } from 'Helpers/Props';
import Label from 'Components/Label';
import styles from './SeriesTags.css';
function SeriesTags({ tags }) {
return (
<div>
{
tags.map((tag) => {
return (
<Label
key={tag}
kind={kinds.INFO}
size={sizes.LARGE}
>
{tag}
</Label>
);
})
}
</div>
);
}
SeriesTags.propTypes = {
tags: PropTypes.arrayOf(PropTypes.string).isRequired
};
export default SeriesTags;