File size: 550 Bytes
9b906ea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { StyledTooltip } from "#/components/shared/buttons/styled-tooltip";
interface ChatActionTooltipProps {
children: React.ReactNode;
tooltip: string | React.ReactNode;
ariaLabel?: string;
}
export function ChatActionTooltip({
children,
tooltip,
ariaLabel,
}: ChatActionTooltipProps) {
return (
<StyledTooltip
content={tooltip}
placement="bottom"
tooltipClassName="bg-white text-black text-xs font-medium leading-5"
>
<span data-aria-label={ariaLabel}>{children}</span>
</StyledTooltip>
);
}
|