The DownloadIcon and ShareIcon in Minerva extend the Icon class to override some of its options, however when rendered it looks and quacks like an Icon.js. Let's rewrite Icon.js and these files so they use composition rather than inheritance.
Acceptance criteria
- Armed with the ability to define events in props
and experiments with factory functions we should be able to rewrite DownloadIcon as a factory functions that return instances of an Icon class.
- The same should be possible for the ShareIcon
- Be prepared to report back to the team on your experiences. (added to Jan. 14's super-happy-dev-time list)