import React, { FC } from 'react'; import { Col, ColProps, Row } from 'reactstrap'; import classNames from 'classnames'; export interface MegamenuHCProps extends ColProps { /** Quanto abilitato gestisce il contenuto della colonna come una sezione che può contentere immagini, testo, ect. */ description?: boolean; /** Classi aggiuntive da usare per il componente Megamenu Highlight Column */ className?: string; } export const MegamenuHighlightColumn: FC = ({ description, className, children, ...attributes }) => { const classes = classNames(className, 'it-vertical', { 'it-description': description }); return ( {description ?
{children}
: <>{children}}
); };