import { DefaultButton, Modal, PrimaryButton, Stack, Text } from "@fluentui/react"; import React, { Dispatch, SetStateAction } from "react"; export const DeletePopup = ({ showDeletePopup, setShowDeletePopup, setQuery, }: { showDeletePopup: boolean; setShowDeletePopup: Dispatch>; setQuery: Dispatch>; }): JSX.Element => { const deleteCode = () => { setQuery(""); setShowDeletePopup(false); }; return ( Delete code? This will clear the query from the query builder pane along with all comments and also reset the prompt pane Delete setShowDeletePopup(false)}> Close ); };