"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = CancelButton;
var _reactNative = require("react-native");
var _styles = require("./styles");
var _native = require("@react-navigation/native");
function CancelButton() {
  const navigation = (0, _native.useNavigation)();
  const styles = (0, _styles.useStyles)();
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
    onPress: () => navigation.goBack()
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.icon
  }, /*#__PURE__*/React.createElement(_reactNative.Text, {
    style: styles.cancelText
  }, "Cancel")));
}
//# sourceMappingURL=index.js.map