exportconstCopyToClipboard=({getContent,tip='Copy value to clipboard',icon='fa-copy',...otherProps})=>{
consthandleClick=()=>{
letcopiableContent:string
try{
copiableContent=getContent()
}catch(e){
// addTooltip(e.message)
return
}
if(copiableContent){// module `copy` keeps last copied thing in the memory, so don't show tooltip if nothing is copied, because nothing was added to memory