export function HookWrapper < HookProps extends any [ ] | object > ( props ) { return ( < > < />); } ; export function TestHookWrapper < HookFn extends ( ... args : any [ ] ) => any [ ] | object > ( hookFn ) { return ( ... hookArgs ) => ( ) => { const hookStates = hookFn ( ... hookArgs ) ; return ( < HookWrapper hook = { hookStates } / > ) ; } ; }