import { Comment } from './types'; import { apiFetcher } from './fetcher'; export default function getLastComments(siteId: string, max: number): Promise { return apiFetcher.get(`/last/${max}`, { site: siteId }); }