feat: add profile friend view

This commit is contained in:
Kentai Radiquum 2025-04-04 14:15:47 +05:00
parent 0730b7c7d4
commit 256ecea885
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 441 additions and 59 deletions

View file

@ -15,6 +15,8 @@ export function ProfileActivity(props: {
collectionPreview: any;
friendsCount: number;
friendsPreview: any;
token: string;
isMyProfile: boolean;
}) {
const [tab, setTab] = useState<
"collections" | "comments" | "friends" | "videos"
@ -91,7 +93,14 @@ export function ProfileActivity(props: {
/>
)}
{tab == "comments" && <>comments</>}
{tab == "friends" && <ProfileActivityFriends content={props.friendsPreview || []} />}
{tab == "friends" && (
<ProfileActivityFriends
token={props.token}
content={props.friendsPreview || []}
isMyProfile={props.isMyProfile}
profile_id={props.profile_id}
/>
)}
{tab == "videos" && <>videos</>}
</Card>
);