import React from "react"; import "./Entity.scss"; import {AddToList} from "./AddToList"; export const Entity = (props) => { const hasCover = props.cover; const hasTags = props.tags && props.tags.length > 0; return (

{props.title}

{props.subtitle}

{hasTags &&
    {props.tags.map((tag, index) => (
  • {tag}
  • ))}
}
{hasCover &&
{props.cover}
}
) }