import { createAllChats, getChatMessages, getChatsList } from "./api";

export const loadCreateAllChats = createAllChats;

export const loadChatsList = getChatsList;
export const loadCategorizedChats = () =>
  loadChatsList().then(d => d.categorizedChats);
export const loadUnreadChats = () => loadChatsList().then(d => d.unreadChats);
export const loadCorrespondenceStarted = () =>
  loadChatsList().then(d => d.startedChats);

export const loadChatMessages = getChatMessages;
