2021-09-13 20:41:05 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { SendButton } from './buttons';
|
|
|
|
|
|
|
|
interface IMessageBoxRightButtons {
|
|
|
|
showSend: boolean;
|
|
|
|
submit(): void;
|
|
|
|
}
|
|
|
|
|
2022-03-31 22:39:24 +00:00
|
|
|
const RightButtons = ({ showSend, submit }: IMessageBoxRightButtons) => {
|
2021-09-13 20:41:05 +00:00
|
|
|
if (showSend) {
|
2022-03-31 22:39:24 +00:00
|
|
|
return <SendButton onPress={submit} />;
|
2021-09-13 20:41:05 +00:00
|
|
|
}
|
|
|
|
return null;
|
2022-03-31 22:39:24 +00:00
|
|
|
};
|
2021-09-13 20:41:05 +00:00
|
|
|
|
|
|
|
export default RightButtons;
|