diff --git a/src/components/Tooltip.jsx b/src/components/Tooltip.jsx index 4ac630890..732c5b750 100644 --- a/src/components/Tooltip.jsx +++ b/src/components/Tooltip.jsx @@ -2,9 +2,10 @@ import PropTypes from "prop-types"; import { Tooltip as ReactTooltip } from "react-tooltip"; import { useState, useEffect, useRef, useId, cloneElement, isValidElement } from "react"; -export default function Tooltip({ content, children, id, dynamicPositioning = true }) { +export default function Tooltip({ children, content = "Tooltip content", id = undefined, position = "right", dynamicPositioning = true }) { const reactId = useId(); - const tooltipId = id || `tooltip-${reactId}`; + const tooltipId = id ?? `tooltip-${reactId}`; + const [isOpen, setIsOpen] = useState(false); const [isTouchDevice, setIsTouchDevice] = useState(false); const hideTimeoutRef = useRef(null); @@ -115,9 +116,9 @@ export default function Tooltip({ content, children, id, dynamicPositioning = tr {childWithTooltip} { const EmptyState = useMemo( () => ( <> - + -

- Drag & Drop or{" "} - - Choose File - -

+ +

+ Drag & Drop or  + Choose Image +

+
), [], diff --git a/src/pages/Home/index.jsx b/src/pages/Home/index.jsx index 5583e8358..a2f5e9384 100644 --- a/src/pages/Home/index.jsx +++ b/src/pages/Home/index.jsx @@ -16,14 +16,14 @@ const Home = () => (
- +

⚡ Fast & Lightweight

Compiled C++ runs in your browser via WebAssembly with near-native speed.

- +

🛠️ Easy to Integrate

Minimal dependencies, works with any project or workflow.