stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
16 lines (13 loc) • 339 B
text/typescript
import { mockedApiResponse, type MockedApiResponse } from './utils';
/**
* Returns the api response for queryChannels api
*
* api - /channels
*/
export const queryChannelsApi = (channels: unknown[] = []): MockedApiResponse => {
const result = {
channels,
duration: 0.01,
};
return mockedApiResponse(result, 'post');
};