경로는 app/(tabs)/inbox로 접근

inbox는 firebase로 chatrooms를 호출하고 아래와같은 모습으로나온다

채팅룸 데이터 타입

export interface FirebaseChatRoom {
  // admin_id : number;
  // belongstocenter : boolean;
  type: string; // TICKET
  status: string; // OPEN,
  slot_id?: number;
  lock_id?: number;
  court_id: number;
  created_at: string;
  updated_at?: string;
  chatRoom_id?: number;
  chatRoom_type: string;
  last_message_at?: string;
  human_initiated_by?: number;
  manager_initiated_by?: number;
  participants: {
    // admin: number;
    // manager_id : number;
    user_id: number;
    center_id: number;
  };

  messages: {
    // message_id : number
    message_id: {
      message: string;
      sent_at: string;
      is_read: boolean;
      message_id: number;
      chatRoom_id: number;
      prevSlot?: Booking;
      manager_sender_id: number;
      attachment_link: string[] | null;
      readBy: { user_id: number; user_type: string }[];
    };
  };
}

아래는 실제 데이터

[{"admin_id": 3, "belongstocenter": false, "center_id": 67, "chatRoom_id": 564, "court_id": 31, "created_at": "2025-11-26T22:27:02.995Z", "human_initiated_by": 60, "participants": {"admin": 3, "center_id": 67, "user_id": 60}, "reported_chatroom_id": "561", "slot_id": 4155, "status": "OPEN", "type": "TICKET"}, {"admin_id": 3, "belongstocenter": false, "center_id": 67, "chatRoom_id": 563, "court_id": 30, "created_at": "2025-11-26T13:42:18.803Z", "human_initiated_by": 60, "messages": {"1112": [Object]}, "participants": {"admin": 3, "center_id": 67, "user_id": 60}, "reported_chatroom_id": "537", "slot_id": 3603, "status": "OPEN", "type": "TICKET"}, {"court_id": 31, "created_at": "2025-11-26T13:26:41.296Z", "messages": {"1110": [Object]}, "participants": {"center_id": 67, "user_id": 60}, "slot_id": 4155, "status": "ACTIVE", "type": "NORMAL"}, {"court_id": 30, "created_at": "2025-11-24T06:33:52.153Z", "messages": {"1100": [Object], "1102": [Object], "1104": [Object], "1105": [Object], "1106": [Object], "1108": [Object], "1109": [Object]}, "participants": {"center_id": 67, "user_id": 60}, "slot_id": 3852, "status": "ACTIVE", "type": "NORMAL"}, {"admin_id": 3, "belongstocenter": false, "center_id": 67, "chatRoom_id": 560, "court_id": 30, "created_at": "2025-11-24T17:12:56.330Z", "human_initiated_by": 60, "messages": {"1103": [Object], "1107": [Object]}, "participants": {"admin": 3, "center_id": 67, "user_id": 60}, "reported_chatroom_id": "558", "slot_id": 3852, "status": "OPEN", "type": "TICKET"}, {"admin_id": 3, "belongstocenter": false, "center_id": 67, "chatRoom_id": 545, "court_id": 31, "created_at": "2025-11-18T02:51:24.571Z", "human_initiated_by": 60, "messages": {"1058": [Object], "1074": [Object], "1075": [Object], "1076": [Object], "1077": [Object], "1078": [Object], "1079": [Object], "1081": [Object], "1082": [Object], "1096": [Object], "1097": [Object], "1098": [Object], "1099": [Object]}, "participants": {"admin": 3, "center_id": 67, "user_id": 60}, "reported_chatroom_id": "544", "slot_id": 3608, "status": "OPEN", "type": "TICKET"}, {"court_id": 30, "created_at": "2025-11-22T16:55:45.546Z", "messages": {"1095": [Object]}, "participants": {"center_id": 67, "user_id": 60}, "slot_id": 3846, "status": "ACTIVE", "type": "NORMAL"}, {"court_id": 30, "created_at": "2025-11-21T14:17:51.824Z", "messages": {"1088": [Object], "1089": [Object], "1090": [Object], "1091": [Object], "1092": [Object], "1093": [Object], "1094": [Object]}, "participants": {"center_id": 67, "user_id": 60}, "slot_id": 3657, "status": "ACTIVE", "type": "NORMAL"}, {"admin_id": 3, "belongstocenter": false, "center_id": 67, "chatRoom_id": 556, "court_id": 30, "created_at": "2025-11-21T14:25:16.306Z", "human_initiated_by": 60, "participants": {"admin": 3, "center_id": 67, "user_id": 60}, "reported_chatroom_id": "555", "slot_id": 3657, "status": "OPEN", "type": "TICKET"}, {"court_id": 99, "created_at": "2025-11-19T17:19:35.486Z", "messages": {"1080": [Object]}, "participants": {"center_id": 84, "user_id": 60}, "slot_id": 3723, "status": "ACTIVE", "type": "NORMAL"}]

이후 chat-room파일이랑 연관이 된다