import { memo } from 'react';
import { StyleSheet } from 'react-native';
import { Typography } from '../../../core/components/Typography/Typography';
import { useAmityElement } from '../../hooks';
import { PageID, ComponentID, ElementID } from '../../enums';
const AllCategoriesTitle = ({
  title,
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent
}) => {
  const elementId = ElementID.all_categories_title;
  const {
    themeStyles
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const styles = StyleSheet.create({
    title: {
      color: themeStyles === null || themeStyles === void 0 ? void 0 : themeStyles.colors.base,
      flex: 1,
      textAlign: 'center'
    }
  });
  return /*#__PURE__*/React.createElement(Typography.TitleBold, {
    style: styles.title,
    numberOfLines: 1
  }, title);
};
export default /*#__PURE__*/memo(AllCategoriesTitle);
//# sourceMappingURL=AllCategoriesTitle.js.map