import { Image, Link, PrimaryButton, Stack, Text } from "@fluentui/react"; import { useQueryCopilot } from "hooks/useQueryCopilot"; import React from "react"; import Database from "../../../../../images/CopilotDatabase.svg"; import Flash from "../../../../../images/CopilotFlash.svg"; import CopilotSidebarWelcomeIllustration from "../../../../../images/CopilotSidebarWelcomeIllustration.svg"; import Thumb from "../../../../../images/CopilotThumb.svg"; export const WelcomeSidebarModal: React.FC = (): JSX.Element => { const { showWelcomeSidebar, setShowWelcomeSidebar } = useQueryCopilot(); const hideModal = (): void => { setShowWelcomeSidebar(false); window.localStorage.setItem("showWelcomeSidebar", "false"); }; React.useEffect(() => { const showWelcomeSidebar = window.localStorage.getItem("showWelcomeSidebar"); setShowWelcomeSidebar(showWelcomeSidebar && showWelcomeSidebar === "false" ? false : true); }, []); return ( showWelcomeSidebar && (
Welcome to Copilot in CosmosDB Let copilot do the work for you
Ask Copilot to generate a query by describing the query in your words.
Learn more
Use your judgement
AI-generated content can have mistakes. Make sure it’s accurate and appropriate before using it.
Read preview terms
Copilot currently works only a sample database
Copilot is setup on a sample database we have configured for you at no cost
Learn more
Get Started
) ); };