feat[components/chatTrigger/index.tsx]: Add Chat Interface shadTooltip

This commit is contained in:
Igor Carvalho 2023-06-18 11:15:46 -03:00
commit f7101f4123

View file

@ -2,6 +2,7 @@ import { Transition } from "@headlessui/react";
import { MessagesSquare } from "lucide-react";
import { alertContext } from "../../../contexts/alertContext";
import { useContext } from "react";
import ShadTooltip from "../../ShadTooltipComponent";
export default function ChatTrigger({ open, setOpen, isBuilt }) {
const { setErrorData } = useContext(alertContext);
@ -29,20 +30,26 @@ export default function ChatTrigger({ open, setOpen, isBuilt }) {
leaveTo="translate-y-96"
>
<div className="absolute bottom-4 right-3">
<div
className="border flex justify-center items-center py-1 px-3 w-12 h-12 rounded-full bg-blue-500 dark:border-gray-600 cursor-pointer"
onClick={handleClick}
<ShadTooltip
delayDuration={500}
content="Chat Interface"
side="left"
>
<button>
<div className="flex gap-3">
<MessagesSquare
className="h-6 w-6 text-blue-100 fill-blue-100"
style={{ color: "white" }}
strokeWidth={1.5}
/>
</div>
</button>
</div>
<div
className="border flex justify-center items-center py-1 px-3 w-12 h-12 rounded-full bg-blue-500 dark:border-gray-600 cursor-pointer"
onClick={handleClick}
>
<button>
<div className="flex gap-3">
<MessagesSquare
className="h-6 w-6 text-blue-100 fill-blue-100"
style={{ color: "white" }}
strokeWidth={1.5}
/>
</div>
</button>
</div>
</ShadTooltip>
</div>
</Transition>
);