"use client"; import React from "react"; import { ThreadWithAuthor } from "@/lib/api"; import { MessageSquare, Eye, Pin, Lock, CheckCircle2, User } from "lucide-react"; import { formatDistanceToNow } from "date-fns"; import { es } from "date-fns/locale"; interface ThreadListProps { threads: ThreadWithAuthor[]; onThreadClick: (threadId: string) => void; } export default function ThreadList({ threads, onThreadClick }: ThreadListProps) { if (threads.length === 0) { return (

No hay hilos de discusión todavía

Sé el primero en iniciar una conversación

); } return (
{threads.map((thread) => ( ))}
); }