import { Text } from 'react-native';
import { memo } from 'react';
import { ComponentID, ElementID, PageID } from '../../../../../enums';
import useConfig from '../../../../../hooks/useConfig';
import { useUiKitConfig } from '../../../../../hooks';
import { useStyles } from './styles/styles';
const Title = () => {
  const {
    excludes
  } = useConfig();
  const styles = useStyles();
  const title = useUiKitConfig({
    keys: ['text'],
    page: PageID.social_home_page,
    component: ComponentID.empty_newsfeed,
    element: ElementID.title
  });
  if (excludes.includes('social_home_page/empty_newsfeed/title')) return null;
  return /*#__PURE__*/React.createElement(Text, {
    style: styles.title
  }, title[0]);
};
export default /*#__PURE__*/memo(Title);
//# sourceMappingURL=Title.js.map