I've got a React component that returns a `country-code` - I want to build on that so that I can pass that country-code into another component and map through the values, returning the appropiate icon based on the country code. I really am starting from scratch and don't really know how to approach it so any suggestions on best options would be really appreciated.

The value so far is like so:
`key={option.code}` // may output something like "AFN"

```
import Afghanistan from "./CountryFlags/Afghanistan.svg";
import Albania from "./CountryFlags/Albania.svg"

const countryList = [
  {
    countryCode: "AFN",
    name: "afghanistan",
    icon: Afghanistan
  },
  {
    countryCode: "ALL", 
    name: "albania",
    icon: Albania
  },
];

export default countryList;

```