forked from github/plane
chore: ai modal disclamier added (#3970)
This commit is contained in:
parent
43c75f4457
commit
0bc4b6cece
@ -7,6 +7,8 @@ import useToast from "hooks/use-toast";
|
|||||||
import { usePopper } from "react-popper";
|
import { usePopper } from "react-popper";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input } from "@plane/ui";
|
import { Button, Input } from "@plane/ui";
|
||||||
|
// icons
|
||||||
|
import { AlertCircle } from "lucide-react";
|
||||||
// components
|
// components
|
||||||
import { RichReadOnlyEditorWithRef } from "@plane/rich-text-editor";
|
import { RichReadOnlyEditorWithRef } from "@plane/rich-text-editor";
|
||||||
import { Popover, Transition } from "@headlessui/react";
|
import { Popover, Transition } from "@headlessui/react";
|
||||||
@ -250,8 +252,17 @@ export const GptAssistantPopover: React.FC<Props> = (props) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<div className={`flex gap-2 ${response === "" ? "justify-end" : "justify-between"}`}>
|
<div className="flex gap-2 justify-between">
|
||||||
{responseActionButton}
|
{responseActionButton ? (
|
||||||
|
<>{responseActionButton}</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<div className="flex items-center justify-center gap-2 text-sm text-custom-primary">
|
||||||
|
<AlertCircle className="h-4 w-4" />
|
||||||
|
<p>By using this feature, you consent to sharing the message with a 3rd party service. </p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<Button variant="neutral-primary" size="sm" onClick={onClose}>
|
<Button variant="neutral-primary" size="sm" onClick={onClose}>
|
||||||
Close
|
Close
|
||||||
|
Loading…
Reference in New Issue
Block a user