// ── Notes: Note Timeline Component ──
// Displays a list of notes for a lead in a vertical timeline layout.
// Each entry shows author avatar, name, role, timestamp, note content, and edit/delete actions.
"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[]
}
/**
* NoteTimeline — renders notes in a time-ordered vertical timeline.
* Shows an EmptyState when there are no notes. Each note has a connecting line
* between entries and inline edit/delete buttons.
*/
export function NoteTimeline({ notes }: NoteTimelineProps) {
if (notes.length === 0) {
return (
Notes
)
}
return (
Notes ({notes.length})