import { getFooter } from "@/lib/trpc/memoizedRequests"

import FooterDetails from "./Details"
import FooterNavigation from "./Navigation"

import styles from "./footer.module.css"

export function preload() {
  void getFooter()
}

export default async function Footer() {
  preload()

  return (
    <footer className={styles.footer}>
      <FooterNavigation />
      <FooterDetails />
    </footer>
  )
}
