import {getLocale} from 'next-intl/server' import {notFound} from 'next/navigation' import {strict} from 'node:assert' import AddCartButton from '@/components/pages/product/add-cart-button' import {ProductProps, getProductById} from '@/lib/data/models/product' import {dump} from '@/lib/utils' import useCartStore from '@/store/cart-store' import {Tabs, TabsContent, TabsList, TabsTrigger} from '@/ui/tabs' export default async function ProductPageIndex({id}: {id: string}) { const product = await getProductById(parseInt(id)) if (!product) notFound() const {locales, toStore} = product as ProductProps const lang = await getLocale() const locale = locales[lang === 'uk' ? 0 : 1] const store = JSON.parse(JSON.stringify(toStore[0])) return (

Опис Інструкція
) }