mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
26 lines
689 B
JavaScript
26 lines
689 B
JavaScript
![]() |
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { isPro, gettext } from '../../components/constants';
|
||
|
import Search from '../search/search';
|
||
|
import Notification from '../common/notification';
|
||
|
import Account from '../common/account';
|
||
|
|
||
|
const propTypes = {
|
||
|
onSearchedClick: PropTypes.func.isRequired
|
||
|
};
|
||
|
|
||
|
class CommonToolbar extends React.Component {
|
||
|
render() {
|
||
|
return (
|
||
|
<div className="common-toolbar">
|
||
|
{isPro && <Search onSearchedClick={this.props.onSearchedClick} placeholder={gettext("Search files")}/>}
|
||
|
<Notification />
|
||
|
<Account />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
CommonToolbar.propTypes = propTypes;
|
||
|
|
||
|
export default CommonToolbar;
|