matrix-react-sdk
Version:
SDK for matrix.org using React
30 lines (29 loc) • 837 B
TypeScript
import React from "react";
import { PhoneNumberCountryDefinition } from "../../../phonenumber";
interface InternationalisedCountry extends PhoneNumberCountryDefinition {
name: string;
}
interface IProps {
value?: string;
onOptionChange: (country: InternationalisedCountry) => void;
isSmall: boolean;
showPrefix: boolean;
className?: string;
disabled?: boolean;
}
interface IState {
searchQuery: string;
}
export default class CountryDropdown extends React.Component<IProps, IState> {
private readonly defaultCountry;
private readonly countries;
private readonly countryMap;
constructor(props: IProps);
componentDidMount(): void;
private onSearchChange;
private onOptionChange;
private flagImgForIso2;
private getShortOption;
render(): React.ReactNode;
}
export {};