diff --git a/library/src/components/ToolTipWrapper.tsx b/library/src/components/ToolTipWrapper.tsx new file mode 100644 index 00000000..8ab7091b --- /dev/null +++ b/library/src/components/ToolTipWrapper.tsx @@ -0,0 +1,23 @@ +import React, { ReactNode } from "react"; + +interface TooltipWrapperProps { + children: ReactNode; + description?: string; + className?: string; +} + +export const TooltipWrapper: React.FC = ({ + children, + description, + className, +}) => { + if (!description) { + return <>{children}; + } + + return ( + + {children} + + ); +};