UNPKG

captide

Version:

Get hundreds of thousands of financial documents into your AI app 🚀

48 lines (47 loc) • 1.19 kB
import React from 'react'; interface ShareableLinkTooltipProps { /** * Whether the tooltip is visible */ isVisible: boolean; /** * Position of the tooltip */ position: { x: number; y: number; }; /** * The document's source link */ sourceLink: string; /** * The highlighted element ID (with # prefix) */ elementId: string | null; /** * Optional custom base URL for the shareable link * Defaults to current origin in generateShareableLink */ baseUrl?: string; /** * Optional callback when tooltip is closed */ onClose?: () => void; /** * Color for the copy button * @default #2563eb */ buttonColor?: string; /** * Custom route path for the document viewer * @default document-viewer */ viewerRoutePath?: string; } /** * A tooltip component that appears when clicking the link button on highlighted document elements, * providing the ability to copy a shareable link to the highlighted content. */ declare const ShareableLinkTooltip: React.FC<ShareableLinkTooltipProps>; export default ShareableLinkTooltip;