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 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);