Added export button

This commit is contained in:
eduardruzga
2024-11-22 11:51:52 +02:00
parent 60411550a5
commit 9f49c25f96
4 changed files with 38 additions and 5 deletions

View File

@@ -1,7 +1,17 @@
import React from 'react';
import * as Tooltip from '@radix-ui/react-tooltip';
import type {ReactNode} from 'react';
const WithTooltip = ({ tooltip, children, sideOffset = 5, className = '', arrowClassName = '', tooltipStyle = {} }) => {
interface ToolTipProps {
tooltip: string,
children: ReactNode | ReactNode[];
sideOffset?: number,
className?: string,
arrowClassName?: string,
tooltipStyle?: any, //TODO better type
}
const WithTooltip = ({ tooltip, children, sideOffset = 5, className = '', arrowClassName = '', tooltipStyle = {} }: ToolTipProps) => {
return (
<Tooltip.Root>
<Tooltip.Trigger asChild>