import React from 'react'; import { View } from 'react-native'; import { ActionsButton, CancelEditingButton } from './buttons'; import styles from './styles'; interface IMessageBoxLeftButtons { showMessageBoxActions(): void; editing: boolean; editCancel(): void; isActionsEnabled: boolean; } const LeftButtons = React.memo(({ showMessageBoxActions, editing, editCancel, isActionsEnabled }: IMessageBoxLeftButtons) => { if (editing) { return ; } if (isActionsEnabled) { return ; } return ; }); export default LeftButtons;