<!-- Button showing the amount of entry versions -->
<script lang="ts">
  import { mdiHistory } from "@mdi/js";

  import Icon from "./Icon.svelte";

  export let n: number;
  export let href: string;
</script>

{#if n > 1}
  <a class="btn btn-xs btn-primary rounded-full" {href}>
    <Icon path={mdiHistory} size={1.2} />
    <span>{n}</span>
  </a>
{/if}
