diff --git a/website/src/components/ui/Tooltip.tsx b/website/src/components/ui/Tooltip.tsx index fe26bd57b5..9b7a24b5ed 100644 --- a/website/src/components/ui/Tooltip.tsx +++ b/website/src/components/ui/Tooltip.tsx @@ -1,5 +1,5 @@ import type { FC } from "hono/jsx"; -import { HelpCircleIcon } from "../icons"; +import { CloseIcon, HelpCircleIcon } from "../icons"; import { HtmlContent } from "./HtmlContent"; type TooltipProps = { @@ -85,43 +85,81 @@ const tooltipContent: Record< export const Tooltip: FC = ({ kind }) => { const content = tooltipContent[kind]; - if (content.isShowLabel) { - return ( + return ( +
+ {content.isShowLabel && ( + {content.label} + )} + + +
- {content.label} -
-
- +
+
+
+ {content.label} +
+
-
- ); - } - return ( -
-
- -
-
); };