import * as React from 'react'; import styled from 'styled-components/native'; import { OIcon } from '.'; import { DIRECTION } from '../../config/constants'; import { useTheme } from 'styled-components/native'; import { useUtils } from 'ordering-components/native'; import OText from './OText'; const Wrapper = styled.View` flex: 1; border-radius: 35px; min-height: 50px; padding-horizontal: 25px; padding-vertical: 10px; max-width: 80%; margin-bottom: 14px; `; const ImageContainer = styled.TouchableOpacity` flex: 1; `; interface Props { side?: string; bgColor?: string; textColor?: string; contents?: any; datetime?: string; data?: any; image?: string; onClick?: () => void; } const OChatBubble = (props: Props) => { const theme = useTheme(); const [{ optimizeImage }] = useUtils(); return ( {props?.image && ( )} {props.contents} {props.datetime} ); }; export default OChatBubble;