stargaze-studio/components/TooltipIcon.tsx
2022-07-13 16:56:36 +03:00

19 lines
488 B
TypeScript

import { Tooltip } from 'components/Tooltip'
import type { ReactNode } from 'react'
import { FaRegQuestionCircle } from 'react-icons/fa'
import type { IconBaseProps } from 'react-icons/lib'
interface TooltipIconProps extends IconBaseProps {
label: ReactNode
}
export const TooltipIcon = ({ label, ...rest }: TooltipIconProps) => {
return (
<Tooltip label={label}>
<span>
<FaRegQuestionCircle className="cursor-help" {...rest} />
</span>
</Tooltip>
)
}