<script lang="ts">
  import { mdiEye, mdiEyeOff } from "@mdi/js";

  import Icon from "./Icon.svelte";

  export let hidden: boolean;
  export let baseUrl: string;
</script>

<a class="btn btn-sm" href={baseUrl + (hidden ? "" : "?hidden")}>
  <Icon path={hidden ? mdiEye : mdiEyeOff} />
</a>
