import React, {FC, HTMLAttributes, ReactNode } from 'react'; import { Button, Col, Container, Icon, Row } from '../../'; import { BottoneHamburger } from './BottoneHamburger'; export interface BarraIstituzionaleProps extends HTMLAttributes { /** Acronimo dell'applicativo */ acronym?: string; /** Nome dell'applicativo */ applicationName: string; /** Campo di recerca */ search?: boolean; /** Bottone apertura/chiusura menĂ¹ verticale **/ hamburgerButton?: boolean; /** id del data-bs-target**/ data_bs_target?: string; /** Stato del menu a comparsa **/ isOpenSide?: boolean; /** Funzione per il menu a comparsa **/ toggleMenu?: CallableFunction; /** Tipo di menu che il bottone dve aprire **/ menuType?: "horizontal" | "vertical" | "sidebar" ; /** Nodo per il menĂ¹ verticale */ children?: ReactNode; } export const BarraIstituzionale: FC = ({ acronym = "", applicationName, search = false, hamburgerButton = false, data_bs_target, isOpenSide = false, toggleMenu, menuType, children = "", }) => { if (acronym == "") { acronym = applicationName applicationName = "" } let HamburgerButton; if (hamburgerButton) { HamburgerButton = ( ); } return ( < > {HamburgerButton} {acronym} {applicationName} {search && } {children} > ) }; const Search = () => { return ( ) }