mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-25 20:01:45 +00:00
* Fix the teaching bubble popup and enable copilot card * add close copilot button title * fix compilation
24 lines
936 B
TypeScript
24 lines
936 B
TypeScript
import { QueryDocumentsPerPage } from "Explorer/QueryCopilot/Shared/QueryCopilotClient";
|
|
import { QueryResultSection } from "Explorer/Tabs/QueryTab/QueryResultSection";
|
|
import { QueryCopilotState, useQueryCopilot } from "hooks/useQueryCopilot";
|
|
import React from "react";
|
|
|
|
export const QueryCopilotResults: React.FC = (): JSX.Element => {
|
|
return (
|
|
<QueryResultSection
|
|
isMongoDB={false}
|
|
queryEditorContent={useQueryCopilot.getState().selectedQuery || useQueryCopilot.getState().query}
|
|
error={useQueryCopilot.getState().errorMessage}
|
|
queryResults={useQueryCopilot.getState().queryResults}
|
|
isExecuting={useQueryCopilot.getState().isExecuting}
|
|
executeQueryDocumentsPage={(firstItemIndex: number) =>
|
|
QueryDocumentsPerPage(
|
|
firstItemIndex,
|
|
useQueryCopilot.getState().queryIterator,
|
|
useQueryCopilot as Partial<QueryCopilotState>,
|
|
)
|
|
}
|
|
/>
|
|
);
|
|
};
|