infoalloggi-monorepo/apps/infoalloggi/src/_app/testapp/page.tsx

23 lines
605 B
TypeScript
Raw Normal View History

2025-08-22 15:44:18 +02:00
import { Suspense } from "react";
2025-08-22 16:27:58 +02:00
import { getDataFromDB } from "~/_app/lib/annunci";
2025-08-28 18:27:07 +02:00
import AnnunciList from "~/_app/ui/annunci";
2025-08-22 15:44:18 +02:00
import { LoadingPage } from "~/components/loading";
export default function TestAppPage() {
2025-08-28 18:27:07 +02:00
const annunci = getDataFromDB();
2025-08-22 15:44:18 +02:00
2025-08-28 18:27:07 +02:00
return (
<div className="p-8">
<h1 className="mb-4 text-2xl font-bold">Test App Page</h1>
2025-08-22 15:44:18 +02:00
2025-08-28 18:27:07 +02:00
<div className="rounded-lg border bg-gray-50 p-4">
<h2 className="mb-2 text-lg font-semibold">Data from Database:</h2>
2025-08-22 15:44:18 +02:00
2025-08-28 18:27:07 +02:00
<Suspense fallback={<LoadingPage />}>
<AnnunciList annunci={annunci} />
</Suspense>
</div>
</div>
);
2025-08-22 15:44:18 +02:00
}