feat: add PopularTags and TopFriends components, update profile and feed layouts to include them

This commit is contained in:
2025-09-06 19:58:53 +02:00
parent 7348433b9c
commit fc7dacc6fb
5 changed files with 172 additions and 47 deletions

View File

@@ -154,4 +154,11 @@ export const unfollowUser = (username: string, token: string) =>
);
export const getMe = (token: string) =>
apiFetch("/users/me", {}, MeSchema, token);
apiFetch("/users/me", {}, MeSchema, token);
export const getPopularTags = () =>
apiFetch(
"/tags/popular",
{},
z.array(z.string()) // Expect an array of strings
);