<?php

declare(strict_types=1);

/**
 * CTA-Button. Props: $cta array{label: string, slug: string, style?: 'primary'|'outline'}
 */
$style = $cta['style'] ?? 'primary';
?>
<a class="btn<?= $style === 'outline' ? ' btn--outline' : '' ?>" href="<?= e(url($cta['slug'])) ?>"><?= e($cta['label']) ?></a>
