'use client' import { ExternalLink, Calendar as CalendarIcon, Clock } from 'lucide-react' import { Badge } from '@/components/ui/badge' import { cn } from '@/lib/utils' import type { Bookmark } from '@/components/app-shell' interface BookmarkCardProps { bookmark: Bookmark onClick?: () => void compact?: boolean } export function BookmarkCard({ bookmark, onClick, compact }: BookmarkCardProps) { const domain = (() => { try { return new URL(bookmark?.url ?? '').hostname } catch { return '' } })() const tags = bookmark?.tags ?? [] return (
{domain}
{bookmark.ogDescription}
)}