import { createFileRoute } from '@tanstack/react-router'
import ApplyPage from '@/views/[lang]/(main)/jobs/apply/page'
import { createPageMetadata, getMessage } from '@/lib/seo'
import { metadataToHead } from '@/framework/head'

export const Route = createFileRoute('/$lang/_main/jobs/apply')({
  head: ({ params }) =>
    metadataToHead(
      createPageMetadata({
        locale: params.lang,
        pathname: '/jobs/apply',
        title: getMessage(params.lang, 'website.hero.cta'),
        description: getMessage(params.lang, 'jobs.apply.getyourresults.description'),
      })
    ),
  component: ApplyPage,
})
