I hid that camera icon and the Y,Z,X axis accidentally. How do I get it back?
The name of you have hid is Sidebar.

There is three ways to unhide Sidebar:


3d Viewport > Menu > View > Check Sidebar


Click Arrow at the right corner of viewport


Shortcut N