mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
|
|
import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries';
|
||
|
|
|
||
|
|
export function useMCPConnectionStatus({ enabled }: { enabled?: boolean } = {}) {
|
||
|
|
const { data } = useMCPConnectionStatusQuery({
|
||
|
|
enabled,
|
||
|
|
});
|
||
|
|
|
||
|
|
return {
|
||
|
|
connectionStatus: data?.connectionStatus,
|
||
|
|
};
|
||
|
|
}
|