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