Files
brain/web/app/share/bookmark/[id]/page.tsx
T
Andrew S Erwin b9721ff13f
release gate / check (push) Failing after 8m35s
initial commit on Federted servers
2026-10-19 16:23:55 -05:00

14 lines
526 B
TypeScript

import { apiBase } from '@/lib/api'
import { notFound } from 'next/navigation'
import { PublicBookmarkView } from './client'
export default async function PublicSharePage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params
const response = await fetch(`${apiBase()}/api/public/bookmarks/${encodeURIComponent(id)}`, { cache: 'no-store' })
if (!response.ok) notFound()
const bookmark = await response.json()
return <PublicBookmarkView bookmark={JSON.parse(JSON.stringify(bookmark))} />
}