import 'server-only'; import { Link, Icon } from '@theme/components'; import { getWidgetData } from '@akinon/next/data/server'; type TargetBlank = { value: string; data_type: 'dropdown'; }; type FooterSocialItem = [ { // TODO: Refactor this from commerce_proxy kwargs: { data_type: 'nested'; value: { is_target_blank: TargetBlank; }; }; value: { icon_class?: string; site_name: string; redirect_url: string; is_target_blank: string; }; } ]; type FooterSocialType = { social_items: FooterSocialItem; }; export default async function FooterSocial() { const data = await getWidgetData({ slug: 'footer-social' }); return (
{data?.attributes?.social_items?.map((item, i) => ( ))}
); }