import Link from "next/link"; import { verifySession } from "@/lib/dal"; import { createClient } from "@/lib/supabase/server"; import { Card, CardContent } from "@/components/ui/card"; export default async function MessagesPage() { const user = await verifySession(); const supabase = await createClient(); const { data: conversations } = await supabase .from("conversations") .select( "id, created_at, author_id, merchant_id, needs(title), author:profiles!conversations_author_id_fkey(full_name), merchant:profiles!conversations_merchant_id_fkey(full_name)" ) .order("created_at", { ascending: false }); return (
Aucune conversation pour le moment. Elles apparaissent ici une fois qu'une offre est acceptée.
) : ({otherName ?? "Utilisateur"}
{need?.title}