mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
5 lines
138 B
TypeScript
5 lines
138 B
TypeScript
export const queryState = (isPending: boolean, isEnabled = true) => ({
|
|
isPending,
|
|
isEnabled,
|
|
isLoading: isEnabled && isPending,
|
|
});
|