A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
import { useTranslation } from 'react-i18next'
import useSetting from 'frontend/hooks/useSetting'
import { PathSelectionBox } from 'frontend/components/UI'
import { hasHelp } from 'frontend/hooks/hasHelp'
const DefaultInstallPath = () => {
const { t } = useTranslation()
hasHelp(
'defaultInstallPath',
t('setting.default-install-path'),
<p>
{t(
'help.content.defaultInstallPath',
'This is the default path preselected when installing games.'
)}
</p>
)
const [defaultInstallPath, setDefaultInstallPath] = useSetting(
'defaultInstallPath',
''
)
return (
<PathSelectionBox
type="directory"
onPathChange={setDefaultInstallPath}
path={defaultInstallPath}
pathDialogTitle={t('box.default-install-path')}
pathDialogDefaultPath={defaultInstallPath}
label={t('setting.default-install-path')}
htmlId="default_install_path"
noDeleteButton
/>
)
}
export default DefaultInstallPath