This repository has no description
0

Configure Feed

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

semble / src / webapp / features / notes / lib / dal.ts
440 B 20 lines
1import { createSembleClient } from '@/services/apiClient'; 2import { cache } from 'react'; 3 4interface PageParams { 5 page?: number; 6 limit?: number; 7} 8 9export const getNoteCardsForUrl = cache( 10 async (url: string, params?: PageParams) => { 11 const client = createSembleClient(); 12 const response = await client.getNoteCardsForUrl({ 13 url, 14 page: params?.page, 15 limit: params?.limit, 16 }); 17 18 return response; 19 }, 20);