import { getI18n } from "@/i18n/server"

import { PaginationClient } from "./pagination.client"

export default async function PaginationButtons({
  totalPages,
}: {
  totalPages: number
}) {
  const { dictionary } = await getI18n()

  return (
    <PaginationClient
      copy={dictionary.common.pagination}
      totalPages={totalPages}
    />
  )
}
