import { getCategories } from '@/data/menu'
import AdminDashboard from '@/components/admin/AdminDashboard'

export const dynamic = 'force-dynamic'

export default async function AdminPage() {
  const categories = await getCategories()

  return <AdminDashboard initialCategories={categories} />
}
