import { TouchableOpacity, View, Text } from 'react-native';
import { useStyles } from './styles';
import { useNavigation } from '@react-navigation/native';
export default function CancelButton() {
  const navigation = useNavigation();
  const styles = useStyles();
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
    onPress: () => navigation.goBack()
  }, /*#__PURE__*/React.createElement(View, {
    style: styles.icon
  }, /*#__PURE__*/React.createElement(Text, {
    style: styles.cancelText
  }, "Cancel")));
}
//# sourceMappingURL=index.js.map