What is the only African state in which Spanish is an official language?

What is the only African state in which Spanish is an official language?