) => {
if (resizeRef.current?.pointerId !== event.pointerId) return
resizeRef.current = null
capturePointer(event, false)
}
const dragHandleProps = {
title: t('Drag to move'),
onPointerDown: handleDragStart,
onPointerMove: handleDragMove,
onPointerUp: handleDragEnd,
onPointerCancel: handleDragEnd,
}
const style = {
position: 'fixed' as const,
left: state.position.x,
top: state.position.y,
}
if (state.collapsed) {
return (
{props.title}
{props.badge}
)
}
return (