import { redirect } from "next/navigation"

import { overview } from "@/constants/routes/myPages"

import type { Lang } from "@/constants/languages"
import type { LangParams, PageArgs } from "@/types/params"

export default function MyPages({ params }: PageArgs<LangParams>) {
  redirect(overview[params.lang])
}
