"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CountryField = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const command_1 = require("../../../components/ui/command");
const combo_box_field_1 = require("../combo-box-field");
const country_utils_1 = require("../../../utils/country-utils");
const CountryField = ({ ...others }) => {
    return ((0, jsx_runtime_1.jsx)(combo_box_field_1.ComboBoxField, { ...others, children: (0, country_utils_1.getCountries)().map((country) => ((0, jsx_runtime_1.jsx)(command_1.CommandItem, { value: country.code, children: country.name }, country.code))) }));
};
exports.CountryField = CountryField;
