Index: frontend/src/utils/error.ts
===================================================================
--- frontend/src/utils/error.ts	(revision 2730163380202029196d71a92f0cbde3dfdd5b0a)
+++ frontend/src/utils/error.ts	(revision 2730163380202029196d71a92f0cbde3dfdd5b0a)
@@ -0,0 +1,4 @@
+export const handleError = (err: any) => {
+  const errorMessage = err.response?.data?.error || "Failed to fetch user";
+  return errorMessage;
+};
Index: frontend/src/utils/types.ts
===================================================================
--- frontend/src/utils/types.ts	(revision 2b08bed6a1ac91c0de26078bed3ee44d43611bd4)
+++ frontend/src/utils/types.ts	(revision 2730163380202029196d71a92f0cbde3dfdd5b0a)
@@ -13,5 +13,7 @@
   role: string;
   entityType: string;
+  isLikedByCurrentUser: boolean;
 }
+
 export interface MusicalEntity {
   id: number;
@@ -20,4 +22,14 @@
   type: string;
   releasedBy: string;
+  isLikedByCurrentUser?: boolean;
+}
+
+export interface Song extends MusicalEntity {
+  type: "SONG";
+}
+
+export interface Album extends MusicalEntity {
+  type: "ALBUM";
+  songs: Song[];
 }
 
@@ -27,4 +39,5 @@
   cover: string;
   creatorName: string;
+  songsInPlaylist: Song[];
 }
 
