import { env } from "@/env/server"

import CurrentFooter from "@/components/Current/Footer"
import Footer, { preload } from "@/components/Footer"

import type { LangParams, PageArgs } from "@/types/params"

export default function FooterSlot({}: PageArgs<LangParams>) {
  if (env.HIDE_FOR_NEXT_RELEASE) {
    return <CurrentFooter />
  }

  preload()

  return <Footer />
}
