{{#if linkUrl}}
    <a href="{{linkUrl}}"
        {{#each dataAttributes as |dataAttribute|}}
            data-{{dataAttribute.name}}="{{dataAttribute.value}}"
        {{/each}}
        {{#if jsHook}} {{jsHook}}{{#if jsHookValue}}="{{jsHookValue}}" {{/if}}{{/if}}
         class="eds-c-button{{#if variant}} eds-c-button--{{variant}}{{/if}}{{#if size}} eds-c-button--{{size}}{{/if}}">
    {{> (lookup . 'template')}}
    </a>
{{else}}
    <button
        {{#each dataAttributes as |dataAttribute|}}
            data-{{dataAttribute.name}}="{{dataAttribute.value}}"
        {{/each}}
        {{#if id}} id="{{id}}"{{/if}}
        {{#if jsHook}} {{jsHook}}{{#if jsHookValue}}="{{jsHookValue}}"{{/if}}{{/if}}
        {{#if type}} type="{{type}}" {{/if}}
         class="eds-c-button{{#if variant}} eds-c-button--{{variant}}{{/if}}{{#if size}} eds-c-button--{{size}}{{/if}}">
    {{> (lookup . 'template')}}
    </button>
{{/if}}
