const onDragLeave = (event: React.DragEvent<HTMLDivElement>): void => { if ((event.target as Element).id === 'drag-and-drop-container') { setIsDragging(false); } };