// @flow import { useHistory } from 'react-router-dom'; import { SEARCH_IN_LANGUAGE } from 'constants/hashes'; import { SETTINGS_GRP } from 'constants/settings'; import React from 'react'; import * as SETTINGS from 'constants/settings'; 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'; import ThemeSelector from 'component/themeSelector'; // $FlowFixMe import homepages from 'homepages'; type Props = { clock24h: boolean, searchInLanguage: boolean, isAuthenticated: boolean, hideBalance: boolean, setClientSetting: (string, boolean | string | number) => void, setSearchInLanguage: (boolean) => void, }; export default function SettingAppearance(props: Props) { const { clock24h, searchInLanguage, isAuthenticated, hideBalance, setClientSetting, setSearchInLanguage } = props; const { location: { hash }, } = useHistory(); const highlightSearchInLanguage = hash === `#${SEARCH_IN_LANGUAGE}`; return ( <>