2022-11-23 04:12:11 +00:00
|
|
|
import { apiClient } from '../utils/apiClient'
|
2022-10-05 08:55:26 +00:00
|
|
|
|
2022-11-23 04:12:11 +00:00
|
|
|
export const loadAuthorsBy = async (by?: any): Promise<void> => {
|
|
|
|
return await apiClient.getAuthorsBy({ by })
|
|
|
|
}
|
|
|
|
|
|
|
|
export const loadChats = async (): Promise<void> => {
|
2022-11-23 11:34:43 +00:00
|
|
|
return await apiClient.getChats({ limit: 50, offset: 0 })
|
2022-11-23 04:12:11 +00:00
|
|
|
}
|