import React, { FC, HTMLAttributes } from 'react'; import classNames from 'classnames'; import { Icon } from '../Icon/Icon'; export interface HeaderSearchProps extends HTMLAttributes { /** Classi aggiuntive da usare per il componente HeaderSearch */ className?: string; /** Etichetta di testo da applicare all'elemento. In caso di stringa vuota non verrĂ  mostrato alcun testo */ label: string; /** Nome dell'icona da utilizzare */ iconName: string; /** Indirizzo di indirizzamento al click dell'icona */ href?: string; testId?: string; } export const HeaderSearch: FC = ({ className, label, href, iconName = 'it-search', testId, ...attributes }) => { const classes = classNames('it-search-wrapper', className); return (
{label && {label}}
); };