"use client"; import { use } from "react"; import { useQuery } from "@tanstack/react-query"; import Link from "next/link"; import { ExternalLink, Landmark } from "lucide-react"; import { shareAPI } from "@/lib/api"; import { AIBriefCard } from "@/components/bills/AIBriefCard"; import { billLabel } from "@/lib/utils"; export default function SharedBriefPage({ params }: { params: Promise<{ token: string }> }) { const { token } = use(params); const { data, isLoading, isError } = useQuery({ queryKey: ["share-brief", token], queryFn: () => shareAPI.getBrief(token), retry: false, }); return (
Brief not found or link is invalid.