import { Suspense } from "react"

import Breadcrumbs from "@/components/Breadcrumbs"
import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/BreadcrumbsSkeleton"
import { setLang } from "@/i18n/serverContext"

import type { LangParams, PageArgs } from "@/types/params"
import { PageContentTypeEnum } from "@/types/requests/contentType"

export default function AllBreadcrumbs({ params }: PageArgs<LangParams>) {
  setLang(params.lang)

  return (
    <Suspense fallback={<BreadcrumbsSkeleton />}>
      <Breadcrumbs variant={PageContentTypeEnum.accountPage} />
    </Suspense>
  )
}
