All Downloads are FREE. Search and download functionalities are using the official Maven repository.

plugins.Header.SimpleHeader.Menu.Item.tsx Maven / Gradle / Ivy

There is a newer version: 7.28.3
Show newest version
import React from 'react'
import { ButtonDropdownProps } from 'reactstrap'

import NavItemContainer from '../NavItemContainer'
import { Item as ItemProps, Common, ContextItemCommon } from '../../../CommonMenuTypes'
import { ICON_POSITIONS } from '../../../../components/snippets/IconContainer/IconContainer'

export interface Dropdown extends Common {
    items: ItemProps[]
    nested?: boolean
    direction?: ButtonDropdownProps['direction']
    recursiveClose?: boolean
    onItemClick?(): void
    level?: number
    from?: 'HEADER' | 'SIDEBAR'
    iconPosition?: ICON_POSITIONS
}

export interface DropdownContextItem extends ContextItemCommon {
    item: Dropdown
}

export function Item(props: ItemProps) {
    const { href, id, pathname, datasource, datasources } = props
    const active = href ? pathname.includes(href) : false

    return (
        
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy