From 73a996053fb452a129a14aba5125488637bacba4 Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Tue, 8 Oct 2024 01:13:20 +0530 Subject: [PATCH] Update Tooltip.tsx --- components/Tooltip.tsx | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/components/Tooltip.tsx b/components/Tooltip.tsx index 9560b2b..d251096 100644 --- a/components/Tooltip.tsx +++ b/components/Tooltip.tsx @@ -1,20 +1,17 @@ import React from "react"; -import { Tooltip as ReactTooltip } from "react-tooltip"; +import ReactTooltip from "react-tooltip"; -type TooltipProps = { - content: string; - children: React.ReactNode; -}; - -const Tooltip: React.FC = ({ content, children }) => { - return ( -
- {children} -
- {content} -
-
- ); -}; +const Tooltip: React.FC<{ id: string; text: string }> = ({ id, text }) => ( + <> + + ? + + + +); export default Tooltip;