UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

28 lines (27 loc) 694 B
/// <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;