"use client"; import Link from 'next/link'; import { Calendar, DollarSign, TrendingUp } from 'lucide-react'; import { Avatar, AvatarFallback } from '@/components/ui/avatar'; import { ProjectStatusBadge } from '@/components/ui/project-status-badge'; import { Project } from '@/types/project'; interface ProjectListItemProps { project: Project; } // Función para generar iniciales function getInitials(name: string): string { return name .split(' ') .map(word => word[0]) .join('') .toUpperCase() .slice(0, 2); } /** * Componente de fila de proyecto para vista de lista * Diseño horizontal y compacto */ export default function ProjectListItem({ project }: ProjectListItemProps) { const initials = getInitials(project.name); return (
{project.client}
)}