mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Added export button
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user