import React from 'react' import { TouchableHighlight, TouchableOpacity, StyleSheet } from 'react-native' import type { CoreButtonProps } from './CoreButton.types' const CoreButton: React.FC = ({ touchType = 'opacity', activeOpacity, underlayColor, disabled, onPress, style, children }) => { const sharedOptions = { style: [styles.button, style], activeOpacity, disabled, onPress: onPress } const TypeOpacity = () => ( {children} ) const TypeHighlight = () => ( {children} ) return touchType === 'opacity' ? : } export default CoreButton const styles = StyleSheet.create({ button: { flexDirection: 'row', alignItems: 'center' } })