"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
var _reactNativePaper = require("react-native-paper");
var _xml = require("../../../core/assets/icons/xml");
var _reactNativeSvg = require("react-native-svg");
var _styles = require("./styles");
var _enums = require("../../enums");
var _hooks = require("../../hooks");
const AdInformation = ({
  pageId = _enums.PageID.WildCardPage,
  companyName
}) => {
  const componentId = _enums.ComponentID.post_content;
  const {
    accessibilityId,
    themeStyles
  } = (0, _hooks.useAmityComponent)({
    pageId,
    componentId: componentId
  });
  const styles = (0, _styles.useStyles)(themeStyles);
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    testID: accessibilityId,
    style: styles.container
  }, /*#__PURE__*/React.createElement(_reactNativePaper.Text, {
    style: styles.header
  }, "About this advertisement"), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.divider
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.content
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.contentItem
  }, /*#__PURE__*/React.createElement(_reactNativePaper.Text, {
    style: styles.contentTitle
  }, "Why this advertisement?"), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.contentDetail
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    style: styles.infoIcon,
    xml: (0, _xml.infoIcon)(),
    width: "16",
    height: "16"
  }), /*#__PURE__*/React.createElement(_reactNativePaper.Text, {
    style: styles.contentDetailText
  }, "You're seeing this advertisement because it was displayed to all users in the system."))), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.contentItem
  }, /*#__PURE__*/React.createElement(_reactNativePaper.Text, {
    style: styles.contentTitle
  }, "About this advertiser"), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.contentDetail
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    style: styles.infoIcon,
    xml: (0, _xml.infoIcon)(),
    width: "16",
    height: "16"
  }), /*#__PURE__*/React.createElement(_reactNativePaper.Text, {
    style: styles.contentDetailText
  }, "Advertiser name: ", companyName)))));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(AdInformation);
//# sourceMappingURL=AdInformation.js.map