/** * Settings that we allow for unauthenticated users. */ // @flow import React from 'react'; import Card from 'component/common/card'; import { FormField } from 'component/common/form'; import HomepageSelector from 'component/homepageSelector'; import SettingLanguage from 'component/settingLanguage'; import SettingsRow from 'component/settingsRow'; type Props = { searchInLanguage: boolean, setSearchInLanguage: (boolean) => void, }; export default function SettingUnauthenticated(props: Props) { const { searchInLanguage, setSearchInLanguage } = props; const homepages = window.homepages || {}; return ( setSearchInLanguage(!searchInLanguage)} /> {homepages && Object.keys(homepages).length > 1 && ( )} } /> ); } // prettier-ignore const HELP_LANGUAGE = 'Multi-language support is brand new and incomplete. Switching your language may have unintended consequences, like glossolalia.';