text: import React from 'react';
  import { useSelector } from 'react-redux';
  import FeedPhotosItem from './FeedPhotosItem';
  
  import styles from './FeedPhotos.module.css';
  
  const FeedPhotos = ({ setModalPhoto }) => {
    const { list } = useSelector(state => state.feed);
  
    return (
      <ul className={`${styles.feed} animeLeft`}>
        {list.map((photo) => (
          <FeedPhotosItem
            key={photo.id}
            photo={photo}
            setModalPhoto={setModalPhoto}
          />
        ))}
      </ul>
    );
  };
  
  export default FeedPhotos;
  