Made a method to easily convert an component into a hyperlink.