<script lang="ts">
  export let hidden: boolean;
  export let hasEntries: boolean;
</script>

{#if hidden}
  <button
    name="hide"
    class="btn btn-primary"
    type="submit"
    value="0"
  >Einblenden</button
  >
{:else if hasEntries}
  <button name="hide" class="btn" type="submit" value="1">Ausblenden</button>
{:else}
  <button name="delete" class="btn btn-error" type="submit" value="1">Löschen</button>
{/if}
