import { permanentRedirect } from "next/navigation";

import { getLocalizedPath, resolveLocale } from "@/lib/locale";

type PortfolioCategoryIndexPageProps = {
  params: {
    locale: string;
  };
};

export default function PortfolioCategoryIndexPage({
  params: { locale },
}: PortfolioCategoryIndexPageProps) {
  const localeKey = resolveLocale(locale);

  permanentRedirect(getLocalizedPath(localeKey, "/portfolio"));
}
