def get_email_template(
    plugin_configuration: list, template_field_name: str, default: str
) -> str:
    """Get email template from plugin configuration."""
    for config_field in plugin_configuration:
        if config_field["name"] == template_field_name:
            return config_field["value"] or default
    return default