{
if (isDisabled) return;
e.preventDefault();
e.stopPropagation();
const blockRect = block.current?.getBoundingClientRect();
const { x, y } = blockRect ?? { x: 0, y: 0 };
setCoord([e.clientX - x, e.clientY - y]);
if (!open) {
buttonRef.current?.click();
}
}}
{...attrs}
>
{props.children}
{open && }
{!isDisabled &&
}
);
}}