Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

11 righe
388 B

  1. import { serverFetchJson } from "@/app/utils/fetchUtil";
  2. import { BASE_API_URL } from "@/config/api";
  3. import { cache } from "react";
  4. import { RecordTimesheetInput } from "./actions";
  5. export const fetchTimesheets = cache(async (username: string) => {
  6. return serverFetchJson<RecordTimesheetInput>(`${BASE_API_URL}/timesheets`, {
  7. next: { tags: [`timesheets_${username}`] },
  8. });
  9. });