grand commit

This commit is contained in:
2025-02-07 08:34:42 +02:00
parent f594f001f6
commit c6c34f0453
53 changed files with 1283 additions and 625 deletions

View File

@@ -0,0 +1,22 @@
import {getCatalogIndexData} from '@prisma/client/sql'
import {getLocale} from 'next-intl/server'
import {notFound} from 'next/navigation'
import CategoryPageIndex from '@/components/pages/category/page'
import {CategoryPageSqlSchema} from '@/lib/data/models/sqlSchemas'
import {db} from '@/lib/db/prisma/client'
export default async function CatalogPage({
params
}: {
params: Promise<{slug?: string}>
}) {
const loc = await getLocale()
const catalog: CategoryPageSqlSchema[] = await db.$queryRawTyped(
getCatalogIndexData(loc)
)
if (catalog.length < 1) notFound()
return <CategoryPageIndex data={catalog} />
}