You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
418 B
20 lines
418 B
import {
|
|
Tooltip as ReactTooltip,
|
|
type ITooltip as TooltipProps,
|
|
} from 'react-tooltip';
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
export function Tooltip(props: TooltipProps) {
|
|
return (
|
|
<ReactTooltip
|
|
className={cn(
|
|
'hidden text-sm xs:block',
|
|
'!bg-slate-700 !text-slate-200',
|
|
'dark:!bg-slate-200 dark:!text-slate-700',
|
|
props.className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|