<script lang="ts">
  import type { AvatarProps } from '../lib/types';

  let { size = 32, width, height, alt = "Notion", class: className = "", ...rest }: AvatarProps = $props();
  let resolvedWidth = $derived(size ?? width ?? 32);
  let resolvedHeight = $derived(size ?? height ?? 32);
</script>

<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"
  width={resolvedWidth}
  height={resolvedHeight}
  class={className}
  role={alt ? "img" : undefined}
  aria-label={alt || undefined}
  aria-hidden={alt ? undefined : "true"}
  {...rest}
>
<path d="M20.5117 0.0732422C22.7832 -0.113629 23.3681 0.0109051 24.7959 1.00586L30.7012 4.98828C31.6752 5.67269 32 5.85921 32 6.60547V28.4424C32 29.811 31.4802 30.6203 29.6631 30.7441L8.17969 31.9893C6.81569 32.0517 6.16647 31.8647 5.45215 30.9932L1.10352 25.5811C0.324265 24.5848 0 23.8389 0 22.9668V3.55664C0 2.43745 0.519999 1.50381 2.01172 1.37988L20.5117 0.0732422ZM28.7539 7.29004L7.65918 8.47168C6.88073 8.53443 6.62109 8.90818 6.62109 9.7168V28.2559C6.62114 29.252 7.1398 29.625 8.30762 29.5635L28.4941 28.4424C29.6628 28.3807 29.7929 27.6959 29.793 26.8867V8.47168C29.793 7.66371 29.4692 7.22797 28.7539 7.29004ZM26.5488 10.7109C26.6782 11.2714 26.5482 11.8316 25.9629 11.8945L24.9902 12.0801V25.7676C24.1461 26.2028 23.3675 26.4511 22.7188 26.4512C21.6798 26.4512 21.4198 26.1397 20.6416 25.207L14.2793 15.627V24.8965L16.292 25.332C16.292 25.332 16.2922 26.4512 14.668 26.4512L10.1904 26.7002C10.0607 26.4508 10.1908 25.8297 10.6445 25.7051L11.8135 25.3945V13.1387L10.1904 13.0137C10.0604 12.4532 10.3848 11.6449 11.2939 11.582L16.0977 11.2715L22.7188 20.9775V12.3916L21.0303 12.2061C20.9007 11.5209 21.4193 11.0227 22.0684 10.9609L26.5488 10.7109ZM24.1465 2.62402C23.562 2.18874 22.7825 1.69074 21.29 1.81543L3.50488 3.05957C2.85627 3.12127 2.72701 3.43225 2.98535 3.68164L5.51758 5.61035C6.55515 6.41894 6.94529 6.3571 8.89355 6.23242L27.2607 5.1748C27.6503 5.1748 27.3262 4.80121 27.1963 4.73926L24.1465 2.62402Z" fill="currentColor"/>
</svg>
