import React, { FC, HTMLAttributes, PropsWithChildren } from 'react'; import classNames from 'classnames'; export interface MegamenuFooterProps extends HTMLAttributes { /** Classi aggiuntive da usare per il componente Megamenu Footer */ className?: string; vertical?: boolean; } export const MegamenuFooter: FC & { Item: typeof Item; } = ({ className, children, vertical, ...attributes }) => { const classes = classNames(className, `it-footer-link-wrapper${vertical ? '-vertical' : ''}`); return (
{children}
); }; const Item: FC> = ({ href, children }) => { return ( {children} ); }; MegamenuFooter.Item = Item;