feat[components/chatTrigger/index.tsx]: Add Chat Interface shadTooltip
This commit is contained in:
parent
1c55a722fe
commit
f7101f4123
1 changed files with 20 additions and 13 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue