import { Popover as ChakraPopover, IconButton, type IconButtonProps, 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 interface InfoTipProps extends Partial { buttonProps?: IconButtonProps | undefined } export const InfoTip = React.forwardRef( function InfoTip(props, ref) { const { children, buttonProps, ...rest } = props return ( ) }, )