import { Swiper, SwiperSlide } from "swiper/react"; import "swiper/css"; import "swiper/css/navigation"; import "swiper/css/mousewheel"; import "swiper/css/scrollbar"; import { Navigation, Mousewheel, Scrollbar } from "swiper/modules"; import Link from "next/link"; import { Avatar, Button } from "flowbite-react"; import { useState } from "react"; import { ProfileFriendModal } from "./Profile.FriendsModal"; export const ProfileActivityFriends = (props: { content: any; token: string; isMyProfile: boolean; profile_id: number; }) => { const [isFriendModalOpen, setIsFriendModalOpen] = useState(false); return ( <>
{props.content && props.content.length > 0 && props.content.map((profile) => { return (

{profile.login}

); })} {(props.content && props.content.length > 0) || props.isMyProfile ? :

У пользователя нет друзей

}
); };