import Link from "next/link"; import { auth } from "~/server/auth"; import { api, HydrateClient } from "~/trpc/server"; import { Button } from "~/components/ui/button"; import { InvoiceList } from "~/components/data/invoice-list"; import { Plus } from "lucide-react"; export default async function InvoicesPage() { const session = await auth(); if (!session?.user) { return (

Access Denied

Please sign in to view invoices

); } // Prefetch invoices data void api.invoices.getAll.prefetch(); return (

Invoices

Manage your invoices and payments

); }