// @flow import React from 'react'; // $FlowFixMe import homepages from 'homepages'; import { getLanguageEngName } from 'constants/languages'; import { FormField } from 'component/common/form'; import { getDefaultHomepageKey } from 'util/default-languages'; type Props = { homepage: string, setHomepage: (string) => void, }; function SelectHomepage(props: Props) { const { homepage, setHomepage } = props; function handleSetHomepage(e) { const { value } = e.target; setHomepage(value); } if (Object.keys(homepages).length <= 1) { return null; } return ( {Object.keys(homepages).map((hp) => ( ))} ); } export default SelectHomepage;