Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import { InformationCircleIcon } from "@heroicons/react/24/outline";
2import type { ReactNode } from "react";
3import { memo } from "react";
4import { Tooltip } from "@/components/Shared/UI";
5
6interface HelpTooltipProps {
7 children: ReactNode;
8}
9
10const HelpTooltip = ({ children }: HelpTooltipProps) => {
11 if (!children) {
12 return null;
13 }
14
15 return (
16 <span className="cursor-pointer">
17 <Tooltip content={<span>{children}</span>} placement="top">
18 <InformationCircleIcon className="size-[15px] text-gray-500 dark:text-gray-200" />
19 </Tooltip>
20 </span>
21 );
22};
23
24export default memo(HelpTooltip);