import { BlogCard, BlogProps } from ':components/BlogBlocks.tsx' import CardList from ':islands/CardList.tsx' import type { Ref } from 'preact' export default function BlogCardList( { limit, usePlaceholder, useObserver }: { limit?: number usePlaceholder?: boolean useObserver?: boolean }, ) { if (usePlaceholder) { return ( ) } return ( ) } function builder(news: BlogProps) { return BlogCard({ ...news, lastUpdate: new Date(news.lastUpdate) }) } function Placeholder({ ref }: { ref?: Ref | undefined }) { return (

Chargement ...

) } function Fallback() { return (

Pas de news disponible

) }