feat(SW-187): refactor footer query
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
import FooterDetails from "./Details"
|
||||
import FooterNavigation from "./Navigation"
|
||||
|
||||
export default async function Footer() {
|
||||
const footerData = await serverClient().contentstack.base.footer({
|
||||
lang: getLang(),
|
||||
})
|
||||
const languages = await serverClient().contentstack.languageSwitcher.get()
|
||||
const footerData = await serverClient().contentstack.base.footer()
|
||||
|
||||
if (!footerData || !languages) {
|
||||
return <FooterDetails />
|
||||
|
||||
Reference in New Issue
Block a user