// Prodz — Threads: community discussions. List + detail. Each thread is bound // to a production (brief §1.7). No dedicated chat icon — Inbox lives in the top bar. function ThreadsList() { const { L } = useL(); const nav = useNav(); const { ThreadCard, Button, Tag, Badge } = window.ProdzDesignSystem_d0b87b; const [q, setQ] = useStateS(''); const [filter, setFilter] = useStateS('ALL'); const allTags = Array.from(new Set(THREADS.reduce((a, t) => a.concat(t.tags), []))); const shown = THREADS.filter((t) => (filter === 'ALL' || t.tags.includes(filter)) && (!q || tr(L, t.title).toLowerCase().includes(q.toLowerCase()) || tr(L, t.body).toLowerCase().includes(q.toLowerCase()))); return (
{L('Discussioni della community.', 'Community discussions.')}
{L('Nessun thread trovato.', 'No threads found.')}
}{tr(L, t.body)}
{tr(L, r.text)}