mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-22 08:47:22 +00:00
22 lines
555 B
React
22 lines
555 B
React
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import Icon from '../../../components/icon';
|
||
|
import classNames from 'classnames';
|
||
|
import './nav-item-icon.css';
|
||
|
|
||
|
function NavItemIcon({ symbol, className, disable }) {
|
||
|
return (
|
||
|
<div className={classNames('nav-item-icon', {'nav-item-icon-disable': disable})}>
|
||
|
<Icon symbol={symbol} className={className} />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
NavItemIcon.propTypes = {
|
||
|
symbol: PropTypes.string.isRequired,
|
||
|
className: PropTypes.string,
|
||
|
disable: PropTypes.bool,
|
||
|
};
|
||
|
|
||
|
export default NavItemIcon;
|