"use client" import { motion } from "framer-motion" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Note } from "@/types" import { EmptyState } from "@/components/shared/empty-state" import { MessageSquare, Edit2, Trash2 } from "lucide-react" interface NoteTimelineProps { notes: Note[] } export function NoteTimeline({ notes }: NoteTimelineProps) { if (notes.length === 0) { return ( Notes ) } return ( Notes ({notes.length})
{notes.map((note, i) => ( {/* Timeline line */} {i < notes.length - 1 && (
)} {/* Avatar */}
{note.authorName[0]}
{/* Content */}
{note.authorName} {note.authorRole} {new Date(note.createdAt).toLocaleDateString(undefined, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit", })}

{note.note}

))}
) }