vn-verdnaturachat/app/containers/MessageBox/buttons/AudioButton.js

22 lines
427 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import BaseButton from './BaseButton';
2019-12-04 16:39:53 +00:00
const AudioButton = React.memo(({ theme, onPress }) => (
<BaseButton
onPress={onPress}
testID='messagebox-send-audio'
accessibilityLabel='Send_audio_message'
icon='mic'
2019-12-04 16:39:53 +00:00
theme={theme}
/>
));
AudioButton.propTypes = {
2019-12-04 16:39:53 +00:00
theme: PropTypes.string,
onPress: PropTypes.func.isRequired
};
export default AudioButton;