2019-05-27 16:19:39 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import BaseButton from './BaseButton';
|
|
|
|
|
2020-03-30 19:50:27 +00:00
|
|
|
const ActionsButton = React.memo(({ theme, onPress }) => (
|
2019-05-27 16:19:39 +00:00
|
|
|
<BaseButton
|
|
|
|
onPress={onPress}
|
|
|
|
testID='messagebox-actions'
|
|
|
|
accessibilityLabel='Message_actions'
|
2020-07-27 19:53:33 +00:00
|
|
|
icon='add'
|
2019-12-04 16:39:53 +00:00
|
|
|
theme={theme}
|
2019-05-27 16:19:39 +00:00
|
|
|
/>
|
|
|
|
));
|
|
|
|
|
2020-03-30 19:50:27 +00:00
|
|
|
ActionsButton.propTypes = {
|
2019-12-04 16:39:53 +00:00
|
|
|
theme: PropTypes.string,
|
2019-05-27 16:19:39 +00:00
|
|
|
onPress: PropTypes.func.isRequired
|
|
|
|
};
|
|
|
|
|
2020-03-30 19:50:27 +00:00
|
|
|
export default ActionsButton;
|