import { createFileRoute } from '@tanstack/react-router'
import AboutPage from '@/views/[lang]/(main)/about/page'
import { createPageMetadata, getMessage } from '@/lib/seo'
import { metadataToHead } from '@/framework/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,
})
