'use client' import Link from 'next/link' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' interface RelatedNote { id: string title: string type: string tags: string[] score: number reason: string } export function RelatedNotes({ notes }: { notes: RelatedNote[] }) { if (notes.length === 0) return null return ( También podrías necesitar
{notes.map((note) => (
{note.title} {note.type}

{note.reason}

{note.tags.length > 0 && (
{note.tags.slice(0, 3).map((tag) => ( {tag} ))}
)}
))}
) }