import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Heading } from "@/components/ui/typography/heading"; import { Paragraph } from "@/components/ui/typography/paragraph"; import type { AnnotationWithUser } from "@shared/schema"; import { AnnotationFilters } from "./annotation-filters"; interface AnnotationBrowserProps { annotations: AnnotationWithUser[]; onSelect?: (annotation: AnnotationWithUser) => void; } export function AnnotationBrowser({ annotations, onSelect, }: AnnotationBrowserProps) { // TODO: Add filter state and logic return (
{annotations.map((annotation) => ( onSelect?.(annotation)} > {annotation.user.name.charAt(0).toUpperCase()}
{annotation.user.name} {new Date(annotation.createdAt).toLocaleString()}
{annotation.content}
))}
); }