'use client' import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { ExternalLink, Link2, Calendar } from 'lucide-react' import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' export function PublicBookmarkView({ bookmark }: { bookmark: any }) { const domain = (() => { try { return new URL(bookmark?.url ?? '').hostname } catch { return '' } })() return (
computer — Shared Bookmark
{bookmark?.url ?? ''}

{bookmark?.title ?? 'Untitled'}

{bookmark?.ogDescription &&

{bookmark.ogDescription}

}
{bookmark?.ogImage && (
{bookmark?.title
)}
{(bookmark?.tags ?? []).map((bt: any) => ( {bt?.tag?.name} ))}
{bookmark?.notes && (
{bookmark.notes}
)}
{bookmark?.dueDate && ( {new Date(bookmark.dueDate).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', timeZone: 'UTC' })} )}
) }