2019-05-27 16:19:39 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-04-07 14:10:03 +00:00
|
|
|
import { themes } from '../../../lib/constants';
|
2022-03-31 22:39:24 +00:00
|
|
|
import { useTheme } from '../../../theme';
|
|
|
|
import BaseButton from './BaseButton';
|
2019-05-27 16:19:39 +00:00
|
|
|
|
2021-09-13 20:41:05 +00:00
|
|
|
interface ISendButton {
|
|
|
|
onPress(): void;
|
|
|
|
}
|
|
|
|
|
2022-03-31 22:39:24 +00:00
|
|
|
const SendButton = ({ onPress }: ISendButton) => {
|
|
|
|
const { theme } = useTheme();
|
|
|
|
return (
|
|
|
|
<BaseButton
|
|
|
|
onPress={onPress}
|
|
|
|
testID='messagebox-send-message'
|
|
|
|
accessibilityLabel='Send_message'
|
|
|
|
icon='send-filled'
|
|
|
|
color={themes[theme].tintColor}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
2019-05-27 16:19:39 +00:00
|
|
|
|
|
|
|
export default SendButton;
|