+ {/* Delete */}
+
-// Utility functions for link type detection - prefixed to indicate future use
-function _isInternalLink(link: LinkAnnotation): boolean {
- return Boolean(link.target?.type === 'destination' ||
- (link.target?.type === 'action' && link.target.action && isGoToAction(link.target.action)));
-}
+
-function _isExternalLink(link: LinkAnnotation): boolean {
- return Boolean(link.target?.type === 'uri' ||
- (link.target?.type === 'action' && link.target.action && isURIAction(link.target.action)));
-}
+ {/* Navigate / Open */}
+
+
+ );
+ },
+);
+
+LinkToolbar.displayName = 'LinkToolbar';
interface LinkLayerProps {
documentId: string;
pageIndex: number;
- pageWidth: number;
- pageHeight: number;
+ _pageWidth: number;
+ _pageHeight: number;
+ /** Blob/object URL of the current PDF (needed by pdf-lib). */
+ pdfUrl: string | null;
}
export const LinkLayer: React.FC