export interface OvertimeContingent {
  year: number
  paidMinutes: number
  capHours: number
  isDriver: boolean
}

export const getEmployeeOvertimeContingent = async (employeeId: number, year?: number) => {
  const api = useApi()
  const query: Record<string, number> = {}
  if (year) query.year = year
  return api.get<OvertimeContingent>(`/employees/${employeeId}/overtime-contingent`, query, { toast: false })
}
