"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _StoryCircleListItem = _interopRequireDefault(require("./StoryCircleListItem"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const StoryCircleListView = ({
  data,
  handleStoryItemPress,
  isCommunityStory = false
}) => {
  return /*#__PURE__*/React.createElement(_reactNative.FlatList, {
    keyExtractor: (_item, index) => index.toString(),
    data: data,
    horizontal: true,
    showsVerticalScrollIndicator: false,
    showsHorizontalScrollIndicator: false,
    ListFooterComponent: /*#__PURE__*/React.createElement(_reactNative.View, {
      style: styles.footer
    }),
    renderItem: ({
      item,
      index
    }) => /*#__PURE__*/React.createElement(_StoryCircleListItem.default, {
      handleStoryItemPress: () => handleStoryItemPress && handleStoryItemPress(item, index),
      item: item,
      isCommunityStory: isCommunityStory
    })
  });
};
const styles = _reactNative.StyleSheet.create({
  footer: {
    flex: 1,
    width: 8
  }
});
var _default = exports.default = StoryCircleListView;
//# sourceMappingURL=StoryCircleListView.js.map