import useGetIdsFromUrl from "@mobileUI/hooks/useGetIdsFromUrl";
import qs from "qs";

/**
 * 获取聊天页面url
 */
const useGetChatDetailUrl = (domain = "", id, extra_params = {}) => {
  const params = {
    ...useGetIdsFromUrl(),
    ...extra_params,
  };
  const query = {
    id,
    showQuickChat: false,
  };
  return `${domain}/h5/follow-up-record/?${qs.stringify(params)}#/chat-detail?${qs.stringify(query)}`;
};
export default useGetChatDetailUrl;
