score:0


export const countries = [
  { name: 'Afghanistan', code: 'AF' },
  { name: 'Ă…land Islands', code: 'AX' },
  { name: 'Albania', code: 'AL' },
];
type Country = typeof countries[number];

/**
 * CountrySelect
 */
export const CountrySelect: FC<ResourceSelectProps<Country, 'code'>> = (
  props
) => {
  return (
    <ResourceSelect
      placeholder="Country"
      resources={countries}
      {...props}
      valueKey={props.valueKey || 'code'}
    />
  );
};


Related Query

More Query from same tag