29 lines
562 B
TypeScript
29 lines
562 B
TypeScript
import { env } from "@/env/server"
|
|
import { getFooter } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import CurrentFooter from "@/components/Current/Footer"
|
|
|
|
import FooterDetails from "./Details"
|
|
import FooterNavigation from "./Navigation"
|
|
|
|
import styles from "./footer.module.css"
|
|
|
|
export function preload() {
|
|
void getFooter()
|
|
}
|
|
|
|
export default function Footer() {
|
|
if (env.HIDE_FOR_NEXT_RELEASE) {
|
|
return <CurrentFooter />
|
|
}
|
|
|
|
preload()
|
|
|
|
return (
|
|
<footer className={styles.footer}>
|
|
<FooterNavigation />
|
|
<FooterDetails />
|
|
</footer>
|
|
)
|
|
}
|