No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

11 líneas
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. });