flotilla/src/app/components/ProfileList.svelte

32 lines
776 B
Svelte
Raw Normal View History

2024-10-11 23:18:05 +00:00
<script lang="ts">
import Button from "@lib/components/Button.svelte"
import ModalHeader from "@lib/components/ModalHeader.svelte"
2024-10-11 23:18:05 +00:00
import Profile from "@app/components/Profile.svelte"
2025-02-04 00:37:14 +00:00
interface Props {
title: any
pubkeys: any
2025-04-15 18:03:27 +00:00
subtitle?: string
url?: string
2025-02-04 00:37:14 +00:00
}
2025-04-15 18:03:27 +00:00
const {subtitle = "", pubkeys, url, ...restProps}: Props = $props()
2024-10-11 23:18:05 +00:00
</script>
<div class="column gap-4">
<ModalHeader>
2025-02-04 00:37:14 +00:00
{#snippet title()}
<div>{restProps.title}</div>
2025-02-04 00:37:14 +00:00
{/snippet}
{#snippet info()}
<div>{subtitle}</div>
{/snippet}
</ModalHeader>
2024-10-11 23:18:05 +00:00
{#each pubkeys as pubkey (pubkey)}
<div class="card2 bg-alt">
2025-04-15 18:03:27 +00:00
<Profile {pubkey} {url} />
</div>
2024-10-11 23:18:05 +00:00
{/each}
<Button class="btn btn-primary" onclick={() => history.back()}>Got it</Button>
2024-10-11 23:18:05 +00:00
</div>