{# ========================================================================== #}
{# :: Imports #}
{# ========================================================================== #}
{% import "components/nav-button.njk" as navButton %}

{# ========================================================================== #}
{# :: Default #}
{# ========================================================================== #}
{% macro default(classes, data) %}

	<footer class="bp-c-navigator {{'bp-c-navigator--without-previous' if not data.previous}} {{'bp-c-navigator--without-next' if not data.next}}">
		<div class="bp-c-navigator__container bp-l-container">
			{% if data.previous %}
				{{navButton.default("", {
					url: data.previous.url,
					title: data.previous.title,
					type: "generic.previous" | i18n,
					icon: "chevron-left"
				})}}
			{% endif %}

			{% if data.next %}
				{{navButton.default("bp-c-nav-button--reversed", {
					url: data.next.url,
					title: data.next.title,
					type: "generic.next" | i18n,
					icon: "chevron-right"
				})}}
			{% endif %}
		</div>
	</footer>

{% endmacro %}
