<script lang="ts">
  let { img, name, link } = $props();

  console.log(img)

</script>

<div class="border-2 rounded-md max-w-48 p-2">
  {#if img}
  <img src={img!.src} alt={img!.alt} />
{/if}
  <p>{name}</p>
</div>
