import { MouseEvent } from 'react' ; /**
 * Removes focus from a button element when clicked, for example to
 * ensure a wrapping tooltip is hidden on click.
 */ export const blurButtonOnClick = ( callback ) => ( event ) => { ( event . target as HTMLButtonElement ) . blur ( ) ; callback ( ) ; } ;