This repository has no description
1import { createSembleClient } from '@/services/apiClient';
2import { cache } from 'react';
3
4interface PageParams {
5 page?: number;
6 limit?: number;
7}
8
9export const getGlobalFeed = cache(async (params?: PageParams) => {
10 const client = createSembleClient();
11 const response = await client.getGlobalFeed({
12 page: params?.page,
13 limit: params?.limit,
14 });
15
16 return response;
17});