Files
web/apps/scandic-web/components/Footer/index.tsx
Anton Gunnarsson 82708d0d2d Merged in fix/missing-skeletons (pull request #3486)
fix: Missing footer skeletons

* Fix footer skeletons

* Remove unused export


Approved-by: Matilda Landström
2026-01-23 12:35:27 +00:00

28 lines
642 B
TypeScript

import { Suspense } from "react"
import { getFooter } from "@/lib/trpc/memoizedRequests"
import FooterDetails, { FooterDetailsSkeleton } from "./Details"
import FooterNavigation, { FooterNavigationSkeleton } from "./Navigation"
import styles from "./footer.module.css"
function preload() {
void getFooter()
}
export default async function Footer() {
preload()
return (
<footer className={styles.footer}>
<Suspense fallback={<FooterNavigationSkeleton />}>
<FooterNavigation />
</Suspense>
<Suspense fallback={<FooterDetailsSkeleton />}>
<FooterDetails />
</Suspense>
</footer>
)
}