import { serverClient } from "@/lib/trpc/server"

import BreadcrumbsComp from "@/components/TempDesignSystem/Breadcrumbs"

export default async function Breadcrumbs() {
  const breadcrumbs = await serverClient().contentstack.breadcrumbs.get()

  if (!breadcrumbs?.length) {
    return null
  }

  return <BreadcrumbsComp breadcrumbs={breadcrumbs} />
}
