import * as React from 'react' import styled, { useTheme } from 'styled-components/native' import { OIcon } from '.' import { DIRECTION } from '../../config/constants' 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() return ( {props?.image && ( )} {props.contents} {props.datetime} ) } export default OChatBubble;