import { IStyledProps } from '../../../../common/types';
import React, { FunctionComponent } from 'react';
import { GestureResponderEvent, StyleSheet } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';

interface IProps extends IStyledProps<{ image?: any }> {
    onPress?: (event: GestureResponderEvent) => void;

}
export const GoToChatButtonView: FunctionComponent<IProps> = ({
    onPress,
    style
}) => {
    style = { ...defaultStyle, ...style };
    const iconStyle = { ...defaultStyle.image, ...style.image }
    return (
        <Icon
            name="chatbubble-ellipses-sharp"
            style={iconStyle}
            onPress={onPress}
        />
    );
};

const defaultStyle = StyleSheet.create({
    image: {
        color: 'white',
        fontSize: 40,
        opacity: 1,
    },
});
