from typing import List
from typing import Dict


def get_entities_fields(entity_title: str, entities: List[str]) -> List[Dict]:
    """
    Builds an entity from given entity title and entities list
    Args:
        entity_title (str): Title of the entity.
        entities (List[str]): List of the entities.

    Returns:
        (List[Dict]): List of dict containing the entity. List is needed because it is the expected format by Slack API.
    """
    return [{
        "title": f'{entity_title}',
        "value": '\n'.join(entities),
        "short": False
    }]