2024-10-03 21:32:55 +00:00
|
|
|
<script lang="ts">
|
2025-04-16 17:36:21 +00:00
|
|
|
import {removeNil} from "@welshman/lib"
|
|
|
|
|
import {deriveProfileDisplay} from "@welshman/app"
|
2024-10-03 21:32:55 +00:00
|
|
|
|
2025-04-15 18:03:27 +00:00
|
|
|
type Props = {
|
|
|
|
|
pubkey: string
|
|
|
|
|
url?: string
|
|
|
|
|
}
|
2024-10-03 21:32:55 +00:00
|
|
|
|
2025-04-15 18:03:27 +00:00
|
|
|
const {pubkey, url}: Props = $props()
|
|
|
|
|
|
2025-04-16 17:36:21 +00:00
|
|
|
const profileDisplay = deriveProfileDisplay(pubkey, removeNil([url]))
|
2024-10-03 21:32:55 +00:00
|
|
|
</script>
|
|
|
|
|
|
2025-04-16 17:36:21 +00:00
|
|
|
{$profileDisplay}
|