import { createFileRoute } from '@tanstack/react-router'
import AboutPage from '@/views/localized/main/about/page'
import { createPageMetadata, getMessage } from '@/lib/seo'
import { metadataToHead } from '@/lib/head'

export const Route = createFileRoute('/$lang/_main/about')({
  head: ({ params }) =>
    metadataToHead(
      createPageMetadata({
        locale: params.lang,
        pathname: '/about',
        title: getMessage(params.lang, 'website.about.title'),
        description: getMessage(params.lang, 'website.about.description'),
      })
    ),
  component: AboutPage,
})
