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