function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import { useStyle } from './styles';
import { Dimensions, View } from 'react-native';
import { Typography } from '../../../core/components/Typography/Typography';
import { SvgXml } from 'react-native-svg';
import emptyList from '../../../core/assets/icons/emptyList';
import { block, emptyImagePost, emptyPost, emptyVideoPost, firework, privateFeed } from '../../../core/assets/icons';
export function Empty({
  heightPercent = 0.3,
  children,
  ...props
}) {
  const {
    styles
  } = useStyle();
  const dimension = Dimensions.get('window');
  return /*#__PURE__*/React.createElement(View, _extends({}, props, {
    style: [styles.container, {
      minHeight: dimension.height * heightPercent
    }]
  }), children);
}
const EMPTY_ICONS = {
  list: emptyList(),
  post: emptyPost(),
  private: privateFeed(),
  image: emptyImagePost(),
  video: emptyVideoPost(),
  block: block(),
  review: firework()
};
function EmptyContent({
  title,
  icon,
  description
}) {
  const {
    styles,
    theme
  } = useStyle();
  return /*#__PURE__*/React.createElement(View, {
    style: styles.contentContainer
  }, /*#__PURE__*/React.createElement(SvgXml, {
    width: 60,
    height: 60,
    xml: icon ? EMPTY_ICONS[icon] : undefined,
    color: theme.colors.baseShade4
  }), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Typography.TitleBold, {
    style: styles.title
  }, title), description && /*#__PURE__*/React.createElement(Typography.Caption, {
    style: styles.description
  }, description)));
}
Empty.Content = EmptyContent;
//# sourceMappingURL=Empty.js.map