package Ġmaterial ui . components . click away listener Ċ Ċ import Ġorg . w 3 c . dom . events . Event Ċ import Ġreact . R Builder Ċ import Ġreact . R Class Ċ import Ġreact . R Props Ċ Ċ @ Js Module ("@ material - ui / core / Click Away Listener ") Ċ private Ġexternal Ġval Ġclick Away Listener Module : Ġdynamic Ċ Ċ external Ġinterface ĠClick Away Listener Props Ġ: ĠR Props Ġ{ ĊĠĠĠ Ġvar Ġmouse Event : Ġdynamic ĊĠĠĠ Ġvar ĠonClick Away : Ġ(( Event ) Ġ-> ĠUnit )? ĊĠĠĠ Ġvar Ġtouch Event : Ġdynamic Ċ } Ċ Ċ @ Suppress (" Unsafe Cast From Dynamic ") Ċ private Ġval Ġclick Away Listener Component : ĠR Class < Click Away Listener Props > Ġ= Ġclick Away Listener Module . default Ċ Ċ fun ĠR Builder . click Away Listener ( block : ĠClick Away Listener Builder . () Ġ-> ĠUnit ) ĊĠĠĠ Ġ= Ġchild ( Click Away Listener Builder ( click Away Listener Component ). apply ( block ). create ()) Ċ