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

import Button from "@/components/TempDesignSystem/Button"
import Link from "@/components/TempDesignSystem/Link"
import { getIntl } from "@/i18n"

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

export default async function ProfileView({ params }: PageArgs<LangParams>) {
  const { formatMessage } = await getIntl()
  return (
    <Button asChild size="small">
      <Link href={profileEdit[params.lang]}>
        {formatMessage({ id: "Edit" })}
      </Link>
    </Button>
  )
}
