How to change refType in forwardRef based on prop? - Theo's Typesafe Cult