interface Participant { id: string; name?: string; } interface Room { id: string; name: string; objective: string; participants: Participant[]; status: 'active' | 'completed' | 'failed'; createdAt: string; lastMessage?: string; } interface RoomCardProps { room: Room; onClick: () => void; } const getAvatarUrl = (id: string) => { return `https://api.dicebear.com/7.x/bottts/svg?seed=${id}`; }; export default function RoomCard({ room, onClick }: RoomCardProps) { return (
{/* Card Header */}

{room.name}

{room.status.charAt(0).toUpperCase() + room.status.slice(1)}

{room.objective}

{/* Participants */}
{room.participants.map((participant, index) => (
{participant.name {participant.name || `SecondMe ${index + 1}`}
))}
{/* Card Footer */}
{room.createdAt}
View Room
); }