{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
}}

<Route
  @name={{routeName}}
as |route|>
{{#if (eq route.model.item.Checks.length 0)}}
  {{did-insert (route-action 'replaceWith' 'dc.nodes.show.services')}}
{{else}}
  {{did-insert (route-action 'replaceWith' 'dc.nodes.show.healthchecks')}}
{{/if}}
</Route>
