2017-09-27 19:45:49 +03:00
|
|
|
/*
|
|
|
|
Copyright 2017 New Vector Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2017-11-10 18:55:55 +03:00
|
|
|
import React from 'react';
|
2019-12-20 04:19:56 +03:00
|
|
|
import * as sdk from '../../../index';
|
2017-09-27 19:45:49 +03:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { _t } from '../../../languageHandler';
|
|
|
|
|
|
|
|
const GroupsButton = function(props) {
|
|
|
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
|
|
|
return (
|
2019-11-26 02:51:48 +03:00
|
|
|
<ActionButton className="mx_GroupsButton" action="toggle_my_groups"
|
2017-10-16 15:18:39 +03:00
|
|
|
label={_t("Communities")}
|
2017-09-27 19:45:49 +03:00
|
|
|
size={props.size}
|
2018-12-19 14:11:21 +03:00
|
|
|
tooltip={true}
|
2017-09-27 19:45:49 +03:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
GroupsButton.propTypes = {
|
|
|
|
size: PropTypes.string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default GroupsButton;
|