I have a custom react hook that is used by a component but rather than getting the hook from the global context I\'d like to define it in the props as below.
cons