import React from 'react'; import PropTypes from 'prop-types'; import { isPro, gettext, showLogoutIcon } from '../../utils/constants'; import Search from '../search/search'; import SearchByName from '../search/search-by-name'; import Notification from '../common/notification'; import Account from '../common/account'; import Logout from '../common/logout'; const propTypes = { repoID: PropTypes.string, repoName: PropTypes.string, isLibView: PropTypes.bool, onSearchedClick: PropTypes.func.isRequired, searchPlaceholder: PropTypes.string }; class CommonToolbar extends React.Component { render() { const { repoID, repoName } = this.props; return (