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

plugins.SideBar.Menu.NavItems.Links.LinkBody.tsx Maven / Gradle / Ivy

import React from 'react'
import classNames from 'classnames'
import { NavItemImage } from '@i-novus/n2o-components/lib/display/NavItemImage'

import { Badge } from '../../../../../components/snippets/Badge/Badge'
import { Item } from '../../../../CommonMenuTypes'
import { Icon, Title, getCurrentTitle, needRender } from '../../../utils'

export interface ItemContent extends Item {
    sidebarOpen: boolean
    isStaticView: boolean
    showContent: boolean
    isMiniView: boolean
}

export function LinkBody({ icon, title, src, sidebarOpen, imageSrc, imageShape, badge, isStaticView, showContent, isMiniView }: ItemContent) {
    const currentTitle = getCurrentTitle(isMiniView, icon, title, imageSrc)

    return (
        <>
            
            
            
                {needRender(currentTitle) && (
                    
                )}
            </Badge>
        </>
    )
}
</code></pre>    <br/>
    <br/>
<div class='clear'></div>
</main>
</div>
<br/><br/>
    <div class="align-center">© 2015 - 2025 <a href="/legal-notice.php">Weber Informatics LLC</a> | <a href="/data-protection.php">Privacy Policy</a></div>
<br/><br/><br/><br/><br/><br/>
</body>
</html>