{{#if linkUrl}}
    <a href="{{linkUrl}}"{{#if dataTest}} data-test={{dataTest}}{{/if}}{{#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}}"{{#if
            dataTrack}} data-track="click"{{/if}}{{#if dataTrack}} data-track="{{dataTrack}}"{{/if}}{{#if
            dataTrackAction}} data-track-action="{{dataTrackAction}}"{{/if}}{{#if
            dataTrackCategory}} data-track-category="{{dataTrackCategory}}"{{/if}}{{#if
            dataTrackLabel}} data-track-label="{{dataTrackLabel}}"{{/if}}>
    {{> (lookup . 'template')}}
    </a>
{{else}}
    <button{{#if id}} id="{{id}}"{{/if}}{{#if dataTest}} data-test={{dataTest}}{{/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}}"{{#if
            dataTrack}} data-track="click"{{/if}}{{#if dataTrack}} data-track="{{dataTrack}}"{{/if}}{{#if
            dataTrackAction}} data-track-action="{{dataTrackAction}}"{{/if}}{{#if
            dataTrackCategory}} data-track-category="{{dataTrackCategory}}"{{/if}}{{#if
            dataTrackLabel}} data-track-label="{{dataTrackLabel}}"{{/if}}>
    {{> (lookup . 'template')}}
    </button>
{{/if}}
