import {
ActionIcon,
Alert,
Button,
Flex,
Group,
Popover,
Stack,
Text,
} from "@mantine/core";
import { IconCheck, IconInfoCircle, IconX } from "@tabler/icons-react";
interface EnableAiResponsePromptProps {
onAccept: () => void;
onDecline: () => void;
}
export default function EnableAiResponsePrompt({
onAccept,
onDecline,
}: EnableAiResponsePromptProps) {
const helpContent = (
MiniSearch is a web-searching app with an integrated AI assistant.
With AI Responses enabled, it will generate summaries and answer
questions based on search results.
If disabled, it will function as a classic web search tool.
You can toggle this feature at anytime through the Menu.
);
return (
Enable AI Responses?{helpContent}
}
onClick={onDecline}
size="xs"
>
No, thanks
}
onClick={onAccept}
size="xs"
>
Yes, please
);
}