= ({
items,
max,
showMore,
className,
noLinks
}) => {
max = max || items.length
const remainder = items.length - max
const tags = items.slice(0, max)
const shouldShowMore = showMore && remainder > 0
const classes = className ? `${styles.tags} ${className}` : styles.tags
return (
{tags &&
tags.map((tag) => (
))}
{shouldShowMore && (
{`+ ${items.length - max} more`}
)}
)
}
export default Tags