re the shareButton directive, just realized the transaction objects have a `type` attribute. Definitely, begging for a refactor now.