"use client"; import { useState } from "react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover"; import { useTranslation } from "@/lib/i18n/client"; import { cn } from "@/lib/utils"; import { ExternalLink, NotepadText } from "lucide-react"; interface NotePreviewProps { note: string; bookmarkId: string; className?: string; } export function NotePreview({ note, bookmarkId, className }: NotePreviewProps) { const { t } = useTranslation(); const [isOpen, setIsOpen] = useState(false); if (!note?.trim()) { return null; } return (
{note}
{note}
); }