feat: add TopFriendsCombobox component for selecting top friends, update edit profile form to use it, and implement getFriends API

This commit is contained in:
2025-09-06 22:37:06 +02:00
parent 8ddbf45a09
commit c520690f1e
5 changed files with 138 additions and 24 deletions

View File

@@ -224,4 +224,12 @@ export const getFollowersList = (username: string, token: string | null) =>
{},
z.object({ users: z.array(UserSchema) }),
token
);
export const getFriends = (token: string) =>
apiFetch(
"/friends",
{},
z.object({ users: z.array(UserSchema) }),
token
);