import { createFileRoute } from '@tanstack/react-router'
import LocalizedHomePage from '@/views/localized/main/page'
import { createHomepageMetadata } from '@/lib/seo'
import { metadataToHead } from '@/lib/head'

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