import type { ReactNode } from "react" import { Badge } from "@/components/ui/badge" import { pretty, safeURL } from "@/lib/api" export function Notice({ children }: { children: ReactNode }) { return

{children}

} export function Empty({ children }: { children: ReactNode }) { return
{children}
} export function Status({ error, children }: { error?: boolean; children: ReactNode }) { return {children} } export function JSONView({ value }: { value: unknown }) { return
{pretty(value)}
} export function SourceLink({ url, children }: { url: string; children?: ReactNode }) { const href = safeURL(url) return href ? {children || url} : {children || url} }