2022-11-28 02:00:28 +00:00
|
|
|
import { HelpCircle } from 'lucide-react';
|
2021-11-16 14:11:18 +00:00
|
|
|
|
2022-12-04 20:47:43 +00:00
|
|
|
import { TooltipWithChildren, Position } from '../TooltipWithChildren';
|
2021-11-16 14:11:18 +00:00
|
|
|
|
|
|
|
export interface Props {
|
2022-07-03 23:21:25 +00:00
|
|
|
position?: Position;
|
2021-11-16 14:11:18 +00:00
|
|
|
message: string;
|
2022-08-24 22:11:25 +00:00
|
|
|
className?: string;
|
2021-11-16 14:11:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 22:11:25 +00:00
|
|
|
export function Tooltip({ message, position = 'bottom', className }: Props) {
|
2021-11-16 14:11:18 +00:00
|
|
|
return (
|
2022-12-04 20:47:43 +00:00
|
|
|
<TooltipWithChildren
|
|
|
|
message={message}
|
|
|
|
position={position}
|
|
|
|
className={className}
|
2022-07-03 23:21:25 +00:00
|
|
|
>
|
2022-12-04 20:47:43 +00:00
|
|
|
<span className="inline-flex text-base">
|
|
|
|
<HelpCircle className="lucide ml-1" aria-hidden="true" />
|
|
|
|
</span>
|
|
|
|
</TooltipWithChildren>
|
2021-11-16 14:11:18 +00:00
|
|
|
);
|
|
|
|
}
|