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 { View, FlatList, StyleSheet } from 'react-native';
import StoryCircleListItem from './StoryCircleListItem';
const StoryCircleListView = ({
  data,
  handleStoryItemPress,
  unPressedBorderColor,
  pressedBorderColor,
  unPressedAvatarTextColor,
  pressedAvatarTextColor,
  avatarSize,
  showText,
  avatarTextStyle,
  avatarImageStyle,
  avatarWrapperStyle,
  avatarFlatListProps,
  isCommunityStory = false
}) => {
  return /*#__PURE__*/React.createElement(FlatList, _extends({
    keyExtractor: (_item, index) => index.toString(),
    data: data,
    horizontal: true,
    showsVerticalScrollIndicator: false,
    showsHorizontalScrollIndicator: false,
    ListFooterComponent: /*#__PURE__*/React.createElement(View, {
      style: styles.footer
    }),
    renderItem: ({
      item,
      index
    }) => /*#__PURE__*/React.createElement(StoryCircleListItem, {
      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 = StyleSheet.create({
  footer: {
    flex: 1,
    width: 8
  }
});
export default StoryCircleListView;
//# sourceMappingURL=StoryCircleListView.js.map