import { MemberCard } from ':components/MemberCard.tsx' import CardList from ':islands/CardList.tsx' import type { Ref } from 'preact' export default function MemberCardList( { limit, filters, usePlaceholder, useObserver }: { filters?: [string, string][] limit?: number usePlaceholder?: boolean useObserver?: boolean }, ) { const query = new URL('members/fetchAll', 'https://null/') filters?.forEach((filter) => query.searchParams.set(...filter)) const apiRoute = `${query.pathname}${query.search}` if (usePlaceholder) { return ( ) } return ( ) } function Placeholder({ ref }: { ref?: Ref | undefined }) { return (

Chargement ...

) } function Fallback() { return (

Pas d'utilisateur

) }