import { ReactNode, useContext, useState } from "react"; import { CustomizeContext } from "../../providers/CustomizeProvider"; export const Popover = ({ children, content, cursor = "cursor-pointer", classNames, }: { children: ReactNode; content: string; cursor?: string; classNames?: string; }) => { const customSettings = useContext(CustomizeContext); const { borderRadius } = customSettings.customization; const [showPopover, setShowPopover] = useState(false); return (
{content}
setShowPopover(true)} onMouseOut={() => setShowPopover(false)} className={`skt-w skt-w-${cursor} skt-w-flex`} > {children}
); };