| 1 | import { useState, useCallback, useRef, useEffect } from 'react'; |
| 2 | |
| 3 | interface ApiCallOptions { |
| 4 | onSuccess?: (data: any) => void; |
| 5 | onError?: (error: Error) => void; |
| 6 | showErrorToast?: boolean; |
| 7 | showSuccessToast?: boolean; |
| 8 | successMessage?: string; |
| 9 | errorMessage?: string; |
| 10 | } |
| 11 | |
| 12 | interface ApiCallState<T> { |
| 13 | data: T | null; |
nothing calls this directly
no outgoing calls
no test coverage detected