"use client";

import { StandardNav } from "@/components/standard-nav";
import { useLocaleFunction } from "@/hooks/use-localed";

export function CreditsPagesNav({
  className,
  allowBillingProfile,
}: {
  className?: string;
  allowBillingProfile?: boolean;
}) {
  const t = useLocaleFunction();
  return (
    <StandardNav
      className={className}
      items={[
        { label: t("profile.credits-page"), href: "/credits" },
        {
          label: t("profile.billing-profile-page"),
          href: "/credits/billing-profile",
          disabled: !allowBillingProfile,
        },
      ]}
    />
  );
}
