import React from 'react' import { cn } from '../../../utils' import { typographyVariants } from '../../Typography' import { type FooterConfig } from '../config' import { FooterConfigContext } from '../context' type Props = { category: keyof FooterConfig } export function MainFooterSection({ category, children, }: React.PropsWithChildren) { const { config } = React.useContext(FooterConfigContext) return (
{config[category].map((item) => item.url ? ( {item.label} ) : ( {item.label} ), )} {children}
) }