import PropTypes from 'prop-types'; import React from 'react'; import { kinds } from 'Helpers/Props'; import Label from './Label'; import styles from './TagList.css'; function TagList({ className, tags, tagList }) { const sortedTags = tags .map((tagId) => tagList.find((tag) => tag.id === tagId)) .filter((tag) => !!tag) .sort((a, b) => a.label.localeCompare(b.label)); return (