Files
bewell-in-ua/app/(protected)/admin/product/page.tsx
2025-02-05 08:01:14 +02:00

35 lines
889 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {Product} from '@prisma/client'
import {LayoutList} from 'lucide-react'
import Link from 'next/link'
import AdminPermission from '@/components/(protected)/admin/auth/permission'
import dayjs from '@/lib/config/dayjs'
import {getProducts} from '@/lib/data/models/product'
import {dump} from '@/lib/utils'
//const products = await getProducts()
export default async function AdminProductPage() {
return (
<>
<AdminPermission />
<p>
<Link href='/admin/product/create'>Створити</Link>
</p>
{/*<section className={'mt-12'}>
{products
? products.map((product: Product) => (
<article
key={product.id}
className={'flex flex-row items-center justify-evenly'}
>
<LayoutList />
{product.locales[0].headingTitle || product.locales[0].title}
</article>
))
: null}
</section>*/}
</>
)
}