2024-10-11 23:18:05 +00:00
|
|
|
<script lang="ts">
|
2024-10-22 17:16:31 +00:00
|
|
|
import Button from "@lib/components/Button.svelte"
|
2026-01-30 22:14:12 +00:00
|
|
|
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
|
|
|
|
import Modal from "@lib/components/Modal.svelte"
|
|
|
|
|
import ModalBody from "@lib/components/ModalBody.svelte"
|
2026-02-02 18:09:14 +00:00
|
|
|
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
|
|
|
|
import ModalTitle from "@lib/components/ModalTitle.svelte"
|
|
|
|
|
import ModalSubtitle from "@lib/components/ModalSubtitle.svelte"
|
2024-10-11 23:18:05 +00:00
|
|
|
import Profile from "@app/components/Profile.svelte"
|
|
|
|
|
|
2026-07-28 16:16:26 +00:00
|
|
|
type Props = {
|
|
|
|
|
title: string
|
|
|
|
|
pubkeys: string[]
|
2025-04-15 18:03:27 +00:00
|
|
|
subtitle?: string
|
|
|
|
|
url?: string
|
2025-02-04 00:37:14 +00:00
|
|
|
}
|
|
|
|
|
|
2026-07-28 16:16:26 +00:00
|
|
|
const {title, subtitle = "", pubkeys, url}: Props = $props()
|
2026-07-27 22:38:23 +00:00
|
|
|
|
|
|
|
|
const back = () => history.back()
|
2024-10-11 23:18:05 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-01-30 22:14:12 +00:00
|
|
|
<Modal>
|
|
|
|
|
<ModalBody>
|
|
|
|
|
<ModalHeader>
|
2026-07-28 16:16:26 +00:00
|
|
|
<ModalTitle>{title}</ModalTitle>
|
2026-02-02 18:09:14 +00:00
|
|
|
<ModalSubtitle>{subtitle}</ModalSubtitle>
|
2026-01-30 22:14:12 +00:00
|
|
|
</ModalHeader>
|
|
|
|
|
{#each pubkeys as pubkey (pubkey)}
|
2026-06-24 20:56:53 +00:00
|
|
|
<div class="card">
|
2026-01-30 22:14:12 +00:00
|
|
|
<Profile {pubkey} {url} />
|
|
|
|
|
</div>
|
|
|
|
|
{/each}
|
|
|
|
|
</ModalBody>
|
|
|
|
|
<ModalFooter>
|
2026-07-27 22:38:23 +00:00
|
|
|
<Button class="button button-primary" onclick={back}>Got it</Button>
|
2026-01-30 22:14:12 +00:00
|
|
|
</ModalFooter>
|
|
|
|
|
</Modal>
|