"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 }; }
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); }
const StoryCircleListView = ({
  data,
  handleStoryItemPress,
  unPressedBorderColor,
  pressedBorderColor,
  unPressedAvatarTextColor,
  pressedAvatarTextColor,
  avatarSize,
  showText,
  avatarTextStyle,
  avatarImageStyle,
  avatarWrapperStyle,
  avatarFlatListProps,
  isCommunityStory = false
}) => {
  return /*#__PURE__*/React.createElement(_reactNative.FlatList, _extends({
    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, {
      avatarSize: avatarSize,
      handleStoryItemPress: () => handleStoryItemPress && handleStoryItemPress(item, index),
      unPressedBorderColor: unPressedBorderColor,
      pressedBorderColor: pressedBorderColor,
      unPressedAvatarTextColor: unPressedAvatarTextColor,
      pressedAvatarTextColor: pressedAvatarTextColor,
      item: item,
      showText: showText,
      avatarTextStyle: avatarTextStyle,
      avatarImageStyle: avatarImageStyle,
      avatarWrapperStyle: avatarWrapperStyle,
      isCommunityStory: isCommunityStory
    })
  }, avatarFlatListProps));
};
const styles = _reactNative.StyleSheet.create({
  footer: {
    flex: 1,
    width: 8
  }
});
var _default = exports.default = StoryCircleListView;
//# sourceMappingURL=StoryCircleListView.js.map