feat: add user friends preview

This commit is contained in:
Kentai Radiquum 2025-04-04 05:58:13 +05:00
parent 2fce051a54
commit 0cd74983f3
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 72 additions and 2 deletions

View file

@ -5,6 +5,7 @@ import { Button, ButtonGroup, Card } from "flowbite-react";
import { ProfileActivityCollections } from "./Profile.ActivityCollections";
import { useEffect, useState } from "react";
import { CollectionCourusel } from "../CollectionCourusel/CollectionCourusel";
import { ProfileActivityFriends } from "./Profile.ActivityFriends";
export function ProfileActivity(props: {
profile_id: number;
@ -13,6 +14,7 @@ export function ProfileActivity(props: {
collectionCount: number;
collectionPreview: any;
friendsCount: number;
friendsPreview: any;
}) {
const [tab, setTab] = useState<
"collections" | "comments" | "friends" | "videos"
@ -89,7 +91,7 @@ export function ProfileActivity(props: {
/>
)}
{tab == "comments" && <>comments</>}
{tab == "friends" && <>friends</>}
{tab == "friends" && <ProfileActivityFriends content={props.friendsPreview || []} />}
{tab == "videos" && <>videos</>}
</Card>
);