"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _react = require("react");
var _styles = require("./styles");
var _enums = require("../../../enums");
var _icons = require("../../../../core/assets/icons");
var _reactNativeSvg = require("react-native-svg");
var _CategoryRowImage = _interopRequireDefault(require("../../../elements/CategoryRowImage/CategoryRowImage"));
var _CategoryRowName = _interopRequireDefault(require("../../../elements/CategoryRowName/CategoryRowName"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const CategoryRowItem = ({
  category,
  pageId = _enums.PageID.WildCardPage
}) => {
  const styles = (0, _styles.useStyles)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_CategoryRowImage.default, {
    pageId: pageId,
    avatarFileId: category.avatarFileId
  }), /*#__PURE__*/React.createElement(_CategoryRowName.default, {
    pageId: pageId,
    name: category.name
  }), /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    xml: (0, _icons.arrowRight)(),
    width: 24,
    height: 24
  }));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(CategoryRowItem);
//# sourceMappingURL=CategoryRowItem.js.map