{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: MPL-2.0
~}}

{{#if @condition}}
  <LinkTo @route={{@route}} @model={{@model}} @query={{this.query}} class={{@class}} aria-label={{@label}}>
    {{yield}}
  </LinkTo>
{{else}}
  <span class={{@class}}>
    {{yield}}
  </span>
{{/if}}