import { Popover as ChakraPopover, IconButton, Portal } from "@chakra-ui/react" import * as React from "react" import { HiOutlineInformationCircle } from "react-icons/hi" export interface ToggleTipProps extends ChakraPopover.RootProps { showArrow?: boolean portalled?: boolean portalRef?: React.RefObject content?: React.ReactNode } export const ToggleTip = React.forwardRef( function ToggleTip(props, ref) { const { showArrow, children, portalled = true, content, portalRef, ...rest } = props return ( {children} {showArrow && ( )} {content} ) }, ) export const InfoTip = React.forwardRef< HTMLDivElement, Partial >(function InfoTip(props, ref) { const { children, ...rest } = props return ( ) })