import { getAllCategories } from '@/lib/directus'
import NavbarClient from './NavbarClient'

export default async function Navbar() {
  let categories: { id: string; name: string; slug: string; description: string | null }[] = []
  try {
    categories = await getAllCategories()
  } catch {
    // Directus not yet available — renders empty nav
  }
  return <NavbarClient categories={categories} />
}
