This repository has no description
1<script lang="ts">
2 import FollowCard from "../FollowCard.svelte";
3 import Section from "$lib/components/ui/Section.svelte";
4 import type { PersonData } from "../types";
5
6 interface Props {
7 people: PersonData[];
8 title: string;
9 emptyMessage: string;
10 }
11
12 let { people, title, emptyMessage }: Props = $props();
13</script>
14
15<Section {title} empty={people.length === 0} {emptyMessage} listClass="flex flex-col gap-8">
16 {#each people as person (person.did)}
17 <FollowCard {person} />
18 {/each}
19</Section>