/* eslint-disable react/prop-types */ import React from 'react'; import { TouchableOpacity } from 'react-native'; import { useStyles } from '../../hooks'; import styleSheet from './BaseButton.styles'; import { BaseButtonProps } from './BaseButton.types'; import BaseText, { BaseTextVariant } from '../BaseText'; import Icon, { IconSize } from '../Icon'; const BaseButton = ({ label, icon, size, onPress, style, labelColor, ...props }: BaseButtonProps) => { const { styles } = useStyles(styleSheet, { style, size, labelColor }); return ( {icon && ( )} {label} ); }; export default BaseButton;