import React from 'react'; import { Text, View } from 'react-native'; import Touch from '../../utils/touch'; import { themes } from '../../constants/colors'; import { withTheme } from '../../theme'; import styles from './styles'; interface SidebarItemProps { left: JSX.Element; right: JSX.Element; text: string; current: boolean; onPress(): void; testID: string; theme: string; } const Item = React.memo(({ left, right, text, onPress, testID, current, theme }: SidebarItemProps) => ( {left} {text} {right} )); export default withTheme(Item);