jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
28 lines (27 loc) • 694 B
TypeScript
/// <reference types="react" />
interface Country {
name: string;
title: string;
}
export interface CountrySwitchProps {
/**
* The list of allowed countries.
*/
countries: Country[];
/**
* The currently selected language.
*/
currentCountry?: string;
/**
* Callback for when a language is selected.
*/
onSelectCountry: (country: string) => void;
/**
* If the label of the country should be shown
*
* @default "false"
*/
showLabel?: boolean;
}
export declare const CountrySwitch: ({ countries, currentCountry, onSelectCountry, showLabel }: CountrySwitchProps) => JSX.Element;
export default CountrySwitch;