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

interface IProps extends IStyledProps<{ image?: any }>, IButtonProps { }

export const SwitchCameraButtonView: FunctionComponent<IProps> = ({
    onPress,
    style
}) => {
    style = { ...defaultStyle, ...style };
    const iconStyle = { ...defaultStyle.image, ...style.image }
    return (
        <Icon
            name="switch-camera"
            style={iconStyle}
            onPress={onPress}
            size={40}


        />
    );
};

const defaultStyle = StyleSheet.create({

    image: {
        color: 'white',
        fontSize: 40,
        opacity: 1,
    },
});
