"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
var _Typography = require("../../../core/components/Typography/Typography");
var _hooks = require("../../hooks");
var _enums = require("../../enums");
const CategoryTitle = ({
  title,
  pageId = _enums.PageID.WildCardPage,
  componentId = _enums.ComponentID.WildCardComponent
}) => {
  const elementId = _enums.ElementID.category_title;
  const {
    themeStyles
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId
  });
  const styles = _reactNative.StyleSheet.create({
    title: {
      flex: 1,
      color: themeStyles === null || themeStyles === void 0 ? void 0 : themeStyles.colors.base,
      textAlign: 'center'
    }
  });
  return /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    style: styles.title,
    numberOfLines: 1
  }, title);
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(CategoryTitle);
//# sourceMappingURL=CategoryTitle.js.map