<script lang="ts">
  import {removeUndefined} from "@welshman/lib"
  import {Profiles} from "@welshman/app"
  import {app} from "@app/welshman"

  type Props = {
    pubkey: string
    url?: string
  }

  const {pubkey, url}: Props = $props()

  const profileDisplay = app.use(Profiles).display(pubkey, removeUndefined([url])).$
</script>

{$profileDisplay}
