Ammonia is a compound. A substance that can’t be synthetically interconverted or broken into more straightforward substances.
For example Hydrogen, Helium, Lithium, Beryllium and so on are components.
Compound: It is made out of at least two separate components.
Consequently, ammonia is a compound. It is made out of Nitrogen and Hydrogen.
Final Answer: Ammonia is a compound. It is composed of Nitrogen and Hydrogen.