verdnatura-chat/app/containers/MessageBox/RightButtons.ios.tsx

18 lines
376 B
TypeScript
Raw Normal View History

import React from 'react';
import { SendButton } from './buttons';
interface IMessageBoxRightButtons {
theme: string;
showSend: boolean;
submit(): void;
}
const RightButtons = React.memo(({ theme, showSend, submit }: IMessageBoxRightButtons) => {
if (showSend) {
return <SendButton theme={theme} onPress={submit} />;
}
return null;
});
export default RightButtons;