// import { Country } from "@/types/checkout/type";
// import { fullCacheGraphqlRequest} from "@/lib/graphql-fetch";
// import { GET_COUNTRIES } from "@/graphql";
import NewAddressDefault from "./_components/NewAddressDefault"
const NewAddressPage = async () => {
//  const {data: countriesData} = await fullCacheGraphqlRequest<{
//          countries: Country[] 
//      }>(GET_COUNTRIES);
// countriesData?.countries ||
const COUNTRIES =[
    {
        "id": 1,
        "code": "AF",
        "name": "Afghanistan"
    },
    {
        "id": 2,
        "code": "AX",
        "name": "Åland Islands"
    },
    {
        "id": 3,
        "code": "AL",
        "name": "Albania"
    },
    {
        "id": 4,
        "code": "DZ",
        "name": "Algeria"
    },
    {
        "id": 5,
        "code": "AS",
        "name": "American Samoa"
    },
    {
        "id": 6,
        "code": "AD",
        "name": "Andorra"
    },
    {
        "id": 7,
        "code": "AO",
        "name": "Angola"
    },
    {
        "id": 8,
        "code": "AI",
        "name": "Anguilla"
    },
    {
        "id": 9,
        "code": "AQ",
        "name": "Antarctica"
    },
    {
        "id": 10,
        "code": "AG",
        "name": "Antigua & Barbuda"
    },
    {
        "id": 11,
        "code": "AR",
        "name": "Argentina"
    },
    {
        "id": 12,
        "code": "AM",
        "name": "Armenia"
    },
    {
        "id": 13,
        "code": "AW",
        "name": "Aruba"
    },
    {
        "id": 14,
        "code": "AC",
        "name": "Ascension Island"
    },
    {
        "id": 15,
        "code": "AU",
        "name": "Australia"
    },
    {
        "id": 16,
        "code": "AT",
        "name": "Austria"
    },
    {
        "id": 17,
        "code": "AZ",
        "name": "Azerbaijan"
    },
    {
        "id": 18,
        "code": "BS",
        "name": "Bahamas"
    },
    {
        "id": 19,
        "code": "BH",
        "name": "Bahrain"
    },
    {
        "id": 20,
        "code": "BD",
        "name": "Bangladesh"
    },
    {
        "id": 21,
        "code": "BB",
        "name": "Barbados"
    },
    {
        "id": 22,
        "code": "BY",
        "name": "Belarus"
    },
    {
        "id": 23,
        "code": "BE",
        "name": "Belgium"
    },
    {
        "id": 24,
        "code": "BZ",
        "name": "Belize"
    },
    {
        "id": 25,
        "code": "BJ",
        "name": "Benin"
    },
    {
        "id": 26,
        "code": "BM",
        "name": "Bermuda"
    },
    {
        "id": 27,
        "code": "BT",
        "name": "Bhutan"
    },
    {
        "id": 28,
        "code": "BO",
        "name": "Bolivia"
    },
    {
        "id": 29,
        "code": "BA",
        "name": "Bosnia & Herzegovina"
    },
    {
        "id": 30,
        "code": "BW",
        "name": "Botswana"
    },
    {
        "id": 31,
        "code": "BR",
        "name": "Brazil"
    },
    {
        "id": 32,
        "code": "IO",
        "name": "British Indian Ocean Territory"
    },
    {
        "id": 33,
        "code": "VG",
        "name": "British Virgin Islands"
    },
    {
        "id": 34,
        "code": "BN",
        "name": "Brunei"
    },
    {
        "id": 35,
        "code": "BG",
        "name": "Bulgaria"
    },
    {
        "id": 36,
        "code": "BF",
        "name": "Burkina Faso"
    },
    {
        "id": 37,
        "code": "BI",
        "name": "Burundi"
    },
    {
        "id": 38,
        "code": "KH",
        "name": "Cambodia"
    },
    {
        "id": 39,
        "code": "CM",
        "name": "Cameroon"
    },
    {
        "id": 40,
        "code": "CA",
        "name": "Canada"
    },
    {
        "id": 41,
        "code": "IC",
        "name": "Canary Islands"
    },
    {
        "id": 42,
        "code": "CV",
        "name": "Cape Verde"
    },
    {
        "id": 43,
        "code": "BQ",
        "name": "Caribbean Netherlands"
    },
    {
        "id": 44,
        "code": "KY",
        "name": "Cayman Islands"
    },
    {
        "id": 45,
        "code": "CF",
        "name": "Central African Republic"
    },
    {
        "id": 46,
        "code": "EA",
        "name": "Ceuta & Melilla"
    },
    {
        "id": 47,
        "code": "TD",
        "name": "Chad"
    },
    {
        "id": 48,
        "code": "CL",
        "name": "Chile"
    },
    {
        "id": 49,
        "code": "CN",
        "name": "China"
    },
    {
        "id": 50,
        "code": "CX",
        "name": "Christmas Island"
    },
    {
        "id": 51,
        "code": "CC",
        "name": "Cocos (Keeling) Islands"
    },
    {
        "id": 52,
        "code": "CO",
        "name": "Colombia"
    },
    {
        "id": 53,
        "code": "KM",
        "name": "Comoros"
    },
    {
        "id": 54,
        "code": "CG",
        "name": "Congo - Brazzaville"
    },
    {
        "id": 55,
        "code": "CD",
        "name": "Congo - Kinshasa"
    },
    {
        "id": 56,
        "code": "CK",
        "name": "Cook Islands"
    },
    {
        "id": 57,
        "code": "CR",
        "name": "Costa Rica"
    },
    {
        "id": 58,
        "code": "CI",
        "name": "Côte d’Ivoire"
    },
    {
        "id": 59,
        "code": "HR",
        "name": "Croatia"
    },
    {
        "id": 60,
        "code": "CU",
        "name": "Cuba"
    },
    {
        "id": 61,
        "code": "CW",
        "name": "Curaçao"
    },
    {
        "id": 62,
        "code": "CY",
        "name": "Cyprus"
    },
    {
        "id": 63,
        "code": "CZ",
        "name": "Czechia"
    },
    {
        "id": 64,
        "code": "DK",
        "name": "Denmark"
    },
    {
        "id": 65,
        "code": "DG",
        "name": "Diego Garcia"
    },
    {
        "id": 66,
        "code": "DJ",
        "name": "Djibouti"
    },
    {
        "id": 67,
        "code": "DM",
        "name": "Dominica"
    },
    {
        "id": 68,
        "code": "DO",
        "name": "Dominican Republic"
    },
    {
        "id": 69,
        "code": "EC",
        "name": "Ecuador"
    },
    {
        "id": 70,
        "code": "EG",
        "name": "Egypt"
    },
    {
        "id": 71,
        "code": "SV",
        "name": "El Salvador"
    },
    {
        "id": 72,
        "code": "GQ",
        "name": "Equatorial Guinea"
    },
    {
        "id": 73,
        "code": "ER",
        "name": "Eritrea"
    },
    {
        "id": 74,
        "code": "EE",
        "name": "Estonia"
    },
    {
        "id": 75,
        "code": "ET",
        "name": "Ethiopia"
    },
    {
        "id": 76,
        "code": "EZ",
        "name": "Eurozone"
    },
    {
        "id": 77,
        "code": "FK",
        "name": "Falkland Islands"
    },
    {
        "id": 78,
        "code": "FO",
        "name": "Faroe Islands"
    },
    {
        "id": 79,
        "code": "FJ",
        "name": "Fiji"
    },
    {
        "id": 80,
        "code": "FI",
        "name": "Finland"
    },
    {
        "id": 81,
        "code": "FR",
        "name": "France"
    },
    {
        "id": 82,
        "code": "GF",
        "name": "French Guiana"
    },
    {
        "id": 83,
        "code": "PF",
        "name": "French Polynesia"
    },
    {
        "id": 84,
        "code": "TF",
        "name": "French Southern Territories"
    },
    {
        "id": 85,
        "code": "GA",
        "name": "Gabon"
    },
    {
        "id": 86,
        "code": "GM",
        "name": "Gambia"
    },
    {
        "id": 87,
        "code": "GE",
        "name": "Georgia"
    },
    {
        "id": 88,
        "code": "DE",
        "name": "Germany"
    },
    {
        "id": 89,
        "code": "GH",
        "name": "Ghana"
    },
    {
        "id": 90,
        "code": "GI",
        "name": "Gibraltar"
    },
    {
        "id": 91,
        "code": "GR",
        "name": "Greece"
    },
    {
        "id": 92,
        "code": "GL",
        "name": "Greenland"
    },
    {
        "id": 93,
        "code": "GD",
        "name": "Grenada"
    },
    {
        "id": 94,
        "code": "GP",
        "name": "Guadeloupe"
    },
    {
        "id": 95,
        "code": "GU",
        "name": "Guam"
    },
    {
        "id": 96,
        "code": "GT",
        "name": "Guatemala"
    },
    {
        "id": 97,
        "code": "GG",
        "name": "Guernsey"
    },
    {
        "id": 98,
        "code": "GN",
        "name": "Guinea"
    },
    {
        "id": 99,
        "code": "GW",
        "name": "Guinea-Bissau"
    },
    {
        "id": 100,
        "code": "GY",
        "name": "Guyana"
    },
    {
        "id": 101,
        "code": "HT",
        "name": "Haiti"
    },
    {
        "id": 102,
        "code": "HN",
        "name": "Honduras"
    },
    {
        "id": 103,
        "code": "HK",
        "name": "Hong Kong SAR China"
    },
    {
        "id": 104,
        "code": "HU",
        "name": "Hungary"
    },
    {
        "id": 105,
        "code": "IS",
        "name": "Iceland"
    },
    {
        "id": 106,
        "code": "IN",
        "name": "India"
    },
    {
        "id": 107,
        "code": "ID",
        "name": "Indonesia"
    },
    {
        "id": 108,
        "code": "IR",
        "name": "Iran"
    },
    {
        "id": 109,
        "code": "IQ",
        "name": "Iraq"
    },
    {
        "id": 110,
        "code": "IE",
        "name": "Ireland"
    },
    {
        "id": 111,
        "code": "IM",
        "name": "Isle of Man"
    },
    {
        "id": 112,
        "code": "IL",
        "name": "Israel"
    },
    {
        "id": 113,
        "code": "IT",
        "name": "Italy"
    },
    {
        "id": 114,
        "code": "JM",
        "name": "Jamaica"
    },
    {
        "id": 115,
        "code": "JP",
        "name": "Japan"
    },
    {
        "id": 116,
        "code": "JE",
        "name": "Jersey"
    },
    {
        "id": 117,
        "code": "JO",
        "name": "Jordan"
    },
    {
        "id": 118,
        "code": "KZ",
        "name": "Kazakhstan"
    },
    {
        "id": 119,
        "code": "KE",
        "name": "Kenya"
    },
    {
        "id": 120,
        "code": "KI",
        "name": "Kiribati"
    },
    {
        "id": 121,
        "code": "XK",
        "name": "Kosovo"
    },
    {
        "id": 122,
        "code": "KW",
        "name": "Kuwait"
    },
    {
        "id": 123,
        "code": "KG",
        "name": "Kyrgyzstan"
    },
    {
        "id": 124,
        "code": "LA",
        "name": "Laos"
    },
    {
        "id": 125,
        "code": "LV",
        "name": "Latvia"
    },
    {
        "id": 126,
        "code": "LB",
        "name": "Lebanon"
    },
    {
        "id": 127,
        "code": "LS",
        "name": "Lesotho"
    },
    {
        "id": 128,
        "code": "LR",
        "name": "Liberia"
    },
    {
        "id": 129,
        "code": "LY",
        "name": "Libya"
    },
    {
        "id": 130,
        "code": "LI",
        "name": "Liechtenstein"
    },
    {
        "id": 131,
        "code": "LT",
        "name": "Lithuania"
    },
    {
        "id": 132,
        "code": "LU",
        "name": "Luxembourg"
    },
    {
        "id": 133,
        "code": "MO",
        "name": "Macau SAR China"
    },
    {
        "id": 134,
        "code": "MK",
        "name": "Macedonia"
    },
    {
        "id": 135,
        "code": "MG",
        "name": "Madagascar"
    },
    {
        "id": 136,
        "code": "MW",
        "name": "Malawi"
    },
    {
        "id": 137,
        "code": "MY",
        "name": "Malaysia"
    },
    {
        "id": 138,
        "code": "MV",
        "name": "Maldives"
    },
    {
        "id": 139,
        "code": "ML",
        "name": "Mali"
    },
    {
        "id": 140,
        "code": "MT",
        "name": "Malta"
    },
    {
        "id": 141,
        "code": "MH",
        "name": "Marshall Islands"
    },
    {
        "id": 142,
        "code": "MQ",
        "name": "Martinique"
    },
    {
        "id": 143,
        "code": "MR",
        "name": "Mauritania"
    },
    {
        "id": 144,
        "code": "MU",
        "name": "Mauritius"
    },
    {
        "id": 145,
        "code": "YT",
        "name": "Mayotte"
    },
    {
        "id": 146,
        "code": "MX",
        "name": "Mexico"
    },
    {
        "id": 147,
        "code": "FM",
        "name": "Micronesia"
    },
    {
        "id": 148,
        "code": "MD",
        "name": "Moldova"
    },
    {
        "id": 149,
        "code": "MC",
        "name": "Monaco"
    },
    {
        "id": 150,
        "code": "MN",
        "name": "Mongolia"
    },
    {
        "id": 151,
        "code": "ME",
        "name": "Montenegro"
    },
    {
        "id": 152,
        "code": "MS",
        "name": "Montserrat"
    },
    {
        "id": 153,
        "code": "MA",
        "name": "Morocco"
    },
    {
        "id": 154,
        "code": "MZ",
        "name": "Mozambique"
    },
    {
        "id": 155,
        "code": "MM",
        "name": "Myanmar (Burma)"
    },
    {
        "id": 156,
        "code": "NA",
        "name": "Namibia"
    },
    {
        "id": 157,
        "code": "NR",
        "name": "Nauru"
    },
    {
        "id": 158,
        "code": "NP",
        "name": "Nepal"
    },
    {
        "id": 159,
        "code": "NL",
        "name": "Netherlands"
    },
    {
        "id": 160,
        "code": "NC",
        "name": "New Caledonia"
    },
    {
        "id": 161,
        "code": "NZ",
        "name": "New Zealand"
    },
    {
        "id": 162,
        "code": "NI",
        "name": "Nicaragua"
    },
    {
        "id": 163,
        "code": "NE",
        "name": "Niger"
    },
    {
        "id": 164,
        "code": "NG",
        "name": "Nigeria"
    },
    {
        "id": 165,
        "code": "NU",
        "name": "Niue"
    },
    {
        "id": 166,
        "code": "NF",
        "name": "Norfolk Island"
    },
    {
        "id": 167,
        "code": "KP",
        "name": "North Korea"
    },
    {
        "id": 168,
        "code": "MP",
        "name": "Northern Mariana Islands"
    },
    {
        "id": 169,
        "code": "NO",
        "name": "Norway"
    },
    {
        "id": 170,
        "code": "OM",
        "name": "Oman"
    },
    {
        "id": 171,
        "code": "PK",
        "name": "Pakistan"
    },
    {
        "id": 172,
        "code": "PW",
        "name": "Palau"
    },
    {
        "id": 173,
        "code": "PS",
        "name": "Palestinian Territories"
    },
    {
        "id": 174,
        "code": "PA",
        "name": "Panama"
    },
    {
        "id": 175,
        "code": "PG",
        "name": "Papua New Guinea"
    },
    {
        "id": 176,
        "code": "PY",
        "name": "Paraguay"
    },
    {
        "id": 177,
        "code": "PE",
        "name": "Peru"
    },
    {
        "id": 178,
        "code": "PH",
        "name": "Philippines"
    },
    {
        "id": 179,
        "code": "PN",
        "name": "Pitcairn Islands"
    },
    {
        "id": 180,
        "code": "PL",
        "name": "Poland"
    },
    {
        "id": 181,
        "code": "PT",
        "name": "Portugal"
    },
    {
        "id": 182,
        "code": "PR",
        "name": "Puerto Rico"
    },
    {
        "id": 183,
        "code": "QA",
        "name": "Qatar"
    },
    {
        "id": 184,
        "code": "RE",
        "name": "Réunion"
    },
    {
        "id": 185,
        "code": "RO",
        "name": "Romania"
    },
    {
        "id": 186,
        "code": "RU",
        "name": "Russia"
    },
    {
        "id": 187,
        "code": "RW",
        "name": "Rwanda"
    },
    {
        "id": 188,
        "code": "WS",
        "name": "Samoa"
    },
    {
        "id": 189,
        "code": "SM",
        "name": "San Marino"
    },
    {
        "id": 190,
        "code": "ST",
        "name": "São Tomé & Príncipe"
    },
    {
        "id": 191,
        "code": "SA",
        "name": "Saudi Arabia"
    },
    {
        "id": 192,
        "code": "SN",
        "name": "Senegal"
    },
    {
        "id": 193,
        "code": "RS",
        "name": "Serbia"
    },
    {
        "id": 194,
        "code": "SC",
        "name": "Seychelles"
    },
    {
        "id": 195,
        "code": "SL",
        "name": "Sierra Leone"
    },
    {
        "id": 196,
        "code": "SG",
        "name": "Singapore"
    },
    {
        "id": 197,
        "code": "SX",
        "name": "Sint Maarten"
    },
    {
        "id": 198,
        "code": "SK",
        "name": "Slovakia"
    },
    {
        "id": 199,
        "code": "SI",
        "name": "Slovenia"
    },
    {
        "id": 200,
        "code": "SB",
        "name": "Solomon Islands"
    },
    {
        "id": 201,
        "code": "SO",
        "name": "Somalia"
    },
    {
        "id": 202,
        "code": "ZA",
        "name": "South Africa"
    },
    {
        "id": 203,
        "code": "GS",
        "name": "South Georgia & South Sandwich Islands"
    },
    {
        "id": 204,
        "code": "KR",
        "name": "South Korea"
    },
    {
        "id": 205,
        "code": "SS",
        "name": "South Sudan"
    },
    {
        "id": 206,
        "code": "ES",
        "name": "Spain"
    },
    {
        "id": 207,
        "code": "LK",
        "name": "Sri Lanka"
    },
    {
        "id": 208,
        "code": "BL",
        "name": "St. Barthélemy"
    },
    {
        "id": 209,
        "code": "SH",
        "name": "St. Helena"
    },
    {
        "id": 210,
        "code": "KN",
        "name": "St. Kitts & Nevis"
    },
    {
        "id": 211,
        "code": "LC",
        "name": "St. Lucia"
    },
    {
        "id": 212,
        "code": "MF",
        "name": "St. Martin"
    },
    {
        "id": 213,
        "code": "PM",
        "name": "St. Pierre & Miquelon"
    },
    {
        "id": 214,
        "code": "VC",
        "name": "St. Vincent & Grenadines"
    },
    {
        "id": 215,
        "code": "SD",
        "name": "Sudan"
    },
    {
        "id": 216,
        "code": "SR",
        "name": "Suriname"
    },
    {
        "id": 217,
        "code": "SJ",
        "name": "Svalbard & Jan Mayen"
    },
    {
        "id": 218,
        "code": "SZ",
        "name": "Swaziland"
    },
    {
        "id": 219,
        "code": "SE",
        "name": "Sweden"
    },
    {
        "id": 220,
        "code": "CH",
        "name": "Switzerland"
    },
    {
        "id": 221,
        "code": "SY",
        "name": "Syria"
    },
    {
        "id": 222,
        "code": "TW",
        "name": "Taiwan"
    },
    {
        "id": 223,
        "code": "TJ",
        "name": "Tajikistan"
    },
    {
        "id": 224,
        "code": "TZ",
        "name": "Tanzania"
    },
    {
        "id": 225,
        "code": "TH",
        "name": "Thailand"
    },
    {
        "id": 226,
        "code": "TL",
        "name": "Timor-Leste"
    },
    {
        "id": 227,
        "code": "TG",
        "name": "Togo"
    },
    {
        "id": 228,
        "code": "TK",
        "name": "Tokelau"
    },
    {
        "id": 229,
        "code": "TO",
        "name": "Tonga"
    },
    {
        "id": 230,
        "code": "TT",
        "name": "Trinidad & Tobago"
    },
    {
        "id": 231,
        "code": "TA",
        "name": "Tristan da Cunha"
    },
    {
        "id": 232,
        "code": "TN",
        "name": "Tunisia"
    },
    {
        "id": 233,
        "code": "TR",
        "name": "Turkey"
    },
    {
        "id": 234,
        "code": "TM",
        "name": "Turkmenistan"
    },
    {
        "id": 235,
        "code": "TC",
        "name": "Turks & Caicos Islands"
    },
    {
        "id": 236,
        "code": "TV",
        "name": "Tuvalu"
    },
    {
        "id": 237,
        "code": "UM",
        "name": "U.S. Outlying Islands"
    },
    {
        "id": 238,
        "code": "VI",
        "name": "U.S. Virgin Islands"
    },
    {
        "id": 239,
        "code": "UG",
        "name": "Uganda"
    },
    {
        "id": 240,
        "code": "UA",
        "name": "Ukraine"
    },
    {
        "id": 241,
        "code": "AE",
        "name": "United Arab Emirates"
    },
    {
        "id": 242,
        "code": "GB",
        "name": "United Kingdom"
    },
    {
        "id": 244,
        "code": "US",
        "name": "United States"
    },
    {
        "id": 245,
        "code": "UY",
        "name": "Uruguay"
    },
    {
        "id": 246,
        "code": "UZ",
        "name": "Uzbekistan"
    },
    {
        "id": 247,
        "code": "VU",
        "name": "Vanuatu"
    },
    {
        "id": 248,
        "code": "VA",
        "name": "Vatican City"
    },
    {
        "id": 249,
        "code": "VE",
        "name": "Venezuela"
    },
    {
        "id": 250,
        "code": "VN",
        "name": "Vietnam"
    },
    {
        "id": 251,
        "code": "WF",
        "name": "Wallis & Futuna"
    },
    {
        "id": 252,
        "code": "EH",
        "name": "Western Sahara"
    },
    {
        "id": 253,
        "code": "YE",
        "name": "Yemen"
    },
    {
        "id": 254,
        "code": "ZM",
        "name": "Zambia"
    },
    {
        "id": 255,
        "code": "ZW",
        "name": "Zimbabwe"
    }
];
  return (
     <>
        <NewAddressDefault  countries={ [...COUNTRIES]} />
     </>
  );
};

export default  NewAddressPage;
