Files
edr-platform/apps/edr-freight-web/backoffice/src/queue-management/hooks/useExecution.ts
natib21 e6e44e773b fix ui
2026-07-10 11:25:59 +00:00

34 lines
1.2 KiB
TypeScript

// STUB — @/queue-management is not migrated. These placeholders let
// performance-management's call-management widget resolve; the queue feature is
// inert here. Replace with the real @/queue-management/hooks if it is copied.
/** No-op call-execution mutation matching the react-query mutation shape used. */
export function useCallExecution() {
return {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
mutate: (..._args: any[]) => {
// eslint-disable-next-line no-console
console.warn("[queue-management stub] useCallExecution — not migrated.");
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
mutateAsync: async (..._args: any[]) => undefined,
isPending: false,
isError: false,
isSuccess: false,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: undefined as any,
reset: () => {},
};
}
/** No active execution — matches the query-result shape the widget reads. */
export function useMyActiveExecution() {
return {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: null as any,
isLoading: false,
isError: false,
refetch: () => {},
};
}