import React from 'react'
interface ItemNavbarDropdownProps{
    onChange?: (event: React.MouseEvent<HTMLElement>) => void,
    title:string
}
const ItemNavbarDropdown = ({title, onChange} : ItemNavbarDropdownProps) => {
    return <div 
    key={title}
    onClick={onChange}
    className="dropdown__item">
        {title}
    </div>
}

export default ItemNavbarDropdown