import 'server-only'; import { Link } from '@theme/components'; import { getWidgetData } from '@akinon/next/data/server'; type FooterInfoItem = { value: string; }; type FooterInfoType = { logo_class?: FooterInfoItem; button_link: FooterInfoItem; description: FooterInfoItem; button_text: FooterInfoItem; title: FooterInfoItem; }; export default async function FooterInfo() { const data = await getWidgetData({ slug: 'footer-info' }); return (
{data?.attributes?.description?.value}
{data?.attributes?.button_link && ( {data?.attributes?.button_text?.value} )}
); }