flotilla/src/app/components/ProfileList.svelte

31 lines
748 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
subtitle?: string
pubkeys: any
}
const {subtitle = "", pubkeys, ...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">
<Profile {pubkey} />
</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>