import { createFileRoute } from '@tanstack/react-router'
import LocalizedHomePage from '@/views/[lang]/(main)/page'
import { createHomepageMetadata } from '@/lib/seo'
import { metadataToHead } from '@/framework/head'

export const Route = createFileRoute('/$lang/')({
  head: ({ params }) => metadataToHead(createHomepageMetadata(params.lang)),
  component: LocalizedHomePage,
})
