<script>
  import { _ } from "svelte-i18n";
  export let runner;
</script>

{#if !runner}
  {$_("non-blanko")}
{:else}
  <a href={`/runners/${runner.id}`}>
    {#if runner.middlename}
      {runner.firstname} {runner.middlename} {runner.lastname}
    {:else}
      {runner.firstname} {runner.lastname}
    {/if}
  </a>
{/if}
