This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / webapp / features / feeds / lib / dal.ts
387 B 17 lines
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});