mirror of
https://github.com/BradNut/nextjs-dashboard
synced 2025-09-08 17:40:30 +00:00
27 lines
911 B
TypeScript
27 lines
911 B
TypeScript
import { Suspense } from "react";
|
|
import Cards from "@/app/ui/dashboard/cards";
|
|
import RevenueChart from "@/app/ui/dashboard/revenue-chart";
|
|
import LatestInvoices from "@/app/ui/dashboard/latest-invoices";
|
|
import { lusitana } from "@/app/ui/fonts";
|
|
import { CardSkeleton, LatestInvoicesSkeleton, RevenueChartSkeleton } from "@/app/ui/skeletons";
|
|
|
|
export default async function Page() {
|
|
return (
|
|
<main>
|
|
<h1 className={`${lusitana} mb-4 text-xl md:text-2xl`}>Dashboard</h1>
|
|
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
|
<Suspense fallback={<CardSkeleton />}>
|
|
<Cards />
|
|
</Suspense>
|
|
</div>
|
|
<div className="mt-6 grid grid-cols-1 gap-6 md:grid-cols-4 lg:grid-cols-8">
|
|
<Suspense fallback={<RevenueChartSkeleton />}>
|
|
<RevenueChart />
|
|
</Suspense>
|
|
<Suspense fallback={<LatestInvoicesSkeleton />}>
|
|
<LatestInvoices />
|
|
</Suspense>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|