{title}
{toStateSpan(state)}
{`${summary.slice(0, 150)} ...`}
{state === 'complete' ? 'En savoir plus' : 'Participer'}
import { JSX } from 'preact' import { getStyleScope, useSmartStylesheet } from ':plugins/SmartStylesheet.tsx' type ProjectCardProps = { id: string icon: string title: string summary: string tags: string[] state: 'complete' | 'progress' | 'stale' | 'pending' } const scope = getStyleScope(ProjectCard) export function ProjectCard( { id, icon, title, summary, tags, state }: ProjectCardProps, ) { useSmartStylesheet(import.meta, { scope }) return (