plugins.Header.SimpleHeader.Logo.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { NavbarBrand } from 'reactstrap'
import { needRender } from '../../SideBar/utils'
import { NavbarBrandContent } from './NavbarBrandContent'
export function Logo({ title, subtitle, className, style, href, src, showContent, isMiniView }) {
return (
{src && (
)}
{needRender(title) && (
{title}
)}
{needRender(subtitle) && (
{subtitle}
)}
)
}
Logo.propTypes = {
title: PropTypes.string,
subtitle: PropTypes.string,
className: PropTypes.string,
style: PropTypes.object,
href: PropTypes.string,
src: PropTypes.string,
showContent: PropTypes.bool,
isMiniView: PropTypes.bool,
}
Logo.defaultProps = {
href: '/',
showContent: true,
}