import { getProducts } from '@/data'
import type { Metadata } from 'next'
import ProductsClient from './ProductsClient'

export const metadata: Metadata = {
  title: 'Products',
}

export default async function ProductsPage() {
  const products = await getProducts()

  return <ProductsClient products={products} />
}
