import { getConversations } from "@/lib/conversations-queries"; import Link from "next/link"; const MAX_ROWS = 4; export async function MessagesWidget() { const conversations = await getConversations(); const unread = conversations.filter((c) => c.unread); if (unread.length === 0) { return (
Nessun messaggio in attesa ✓
{conv.lastMessage}