diff --git a/index.tsx b/index.tsx new file mode 100644 index 0000000..c1b89d2 --- /dev/null +++ b/index.tsx @@ -0,0 +1,79 @@ +import { + Box, + IconButton, + Image, + Menu, + MenuButton, + MenuItem, + MenuList, + Tooltip, +} from '@chakra-ui/react'; +import { useState } from 'react'; +import { + AiOutlineMail, + AiOutlineMessage, + AiOutlinePhone, +} from 'react-icons/ai'; +import ChatWithUsIcon from '../shared/assets/img/chat-with-us-icon.svg'; + +interface ChatButtonProps { + salesButtonAction: () => void; +} + +export const ChatButton = ({ salesButtonAction }: ChatButtonProps) => { + const [showOptions, setShowOptions] = useState(false); + + const openChat = () => { + if (window?.Intercom) { + window?.Intercom('show'); + } + }; + + const openEmail = () => { + window.open('mailto:support@devdynamics.ai'); + }; + return ( + + + + + setShowOptions(!showOptions)} + icon={} + /> + + + + }> + Chat with us + + } + > + Talk to us + + }> + Email us + + + + + ); +};