"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _styles = require("./styles");
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
var _native = require("@react-navigation/native");
var _Typography = require("../../../../core/components/Typography/Typography");
var _reactNative = require("react-native");
var _reactNativeSvg = require("react-native-svg");
var _icons = require("../../../../core/assets/icons");
var _LivestreamTerminatedActionButton = require("../../../elements/LivestreamTerminatedActionButton");
var _enums = require("../../../enums");
function AmityLivestreamTerminatedPage() {
  const {
    styles,
    theme
  } = (0, _styles.useStyles)();
  const route = (0, _native.useRoute)();
  const {
    type
  } = route.params;
  const isStreamerView = type === 'streamer';
  return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_reactNative.View, null, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.header
  }, /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    style: styles.base
  }, "Live terminated")), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.content
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 56,
    height: 56,
    color: theme.colors.base,
    xml: isStreamerView ? (0, _icons.warning)() : (0, _icons.terminated)()
  }), /*#__PURE__*/React.createElement(_Typography.Typography.Headline, {
    style: [styles.center, styles.base]
  }, isStreamerView ? 'Your live stream has been \nterminated.' : 'The live stream has been \nterminated.'), /*#__PURE__*/React.createElement(_Typography.Typography.Body, {
    style: [styles.center, styles.baseShade1]
  }, isStreamerView ? 'It looks like your live stream goes against our \ncontent moderation guidelines.' : " It looks like the live stream you're watching goes \nagainst our content moderation guidelines.")), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.info
  }, /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, {
    style: [styles.base]
  }, "What does it mean?"), isStreamerView && /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.flexRow
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 28,
    height: 28,
    xml: (0, _icons.ban)(),
    color: theme.colors.base
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.textContainer
  }, /*#__PURE__*/React.createElement(_Typography.Typography.Body, {
    style: [styles.base]
  }, "The live stream has also been terminated for all your viewers."))), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.flexRow
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 28,
    height: 28,
    xml: (0, _icons.trash)(),
    color: theme.colors.base
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.textContainer
  }, /*#__PURE__*/React.createElement(_Typography.Typography.Body, {
    style: [styles.base]
  }, "There will be no playback of this live stream on any feeds."))))), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.footer
  }, /*#__PURE__*/React.createElement(_LivestreamTerminatedActionButton.LivestreamTerminatedActionButton, {
    pageId: _enums.PageID.livestream_terminated_page
  })));
}
var _default = exports.default = AmityLivestreamTerminatedPage;
//# sourceMappingURL=Terminated.js.map