Can you inject the structure and documentation of this function into the corresponding function in the leavegroup widget?