結果 : pass function with parameters as props react typescript