import Button from './Button'; import './EditableLinkItem.scss'; const EditableLinkedItem = ({ label, buttonText, entityType, entityId, element = 'button' }) => { /** * This handler creates and dispatches the custom event to open the modal * in "inline navigation" mode. */ const handleEditClick = ( e ) => { // The link variant has href="#": no jump to the top, and no click on a card around it. e?.preventDefault?.(); e?.stopPropagation?.(); if (!entityType || !entityId) return; const openModalEvent = new CustomEvent('adpresso:openEditModal', { bubbles: true, detail: { entityType: entityType, entityId: entityId, isInlineNavigation: true, } }); document.body.dispatchEvent(openModalEvent); }; return (