// SPDX-License-Identifier: MIT // Copyright (c) 2022 The Pybricks Authors import { Button, Classes, DialogStep, Intent, MultistepDialog, } from '@blueprintjs/core'; import classNames from 'classnames'; import React from 'react'; import { useDispatch } from 'react-redux'; import { legoRegisteredTrademark } from '../../app/constants'; import { hubHasUSB } from '../../components/hubPicker'; import { HubPicker } from '../../components/hubPicker/HubPicker'; import { useHubPickerSelectedHub } from '../../components/hubPicker/hooks'; import { useSelector } from '../../reducers'; import { firmwareRestoreOfficialDfu } from '../actions'; import BootloaderInstructions from '../bootloaderInstructions/BootloaderInstructions'; import { firmwareRestoreOfficialDialogHide } from './actions'; import { useI18n } from './i18n'; const SelectHubPanel: React.VoidFunctionComponent = () => { const i18n = useI18n(); return (
{i18n.translate('selectHubPanel.message', { lego: legoRegisteredTrademark, next: ( {i18n.translate('selectHubPanel.nextButton')} ), })}
{i18n.translate('restoreFirmwarePanel.instruction2.dfu', { flashFirmware: ( {i18n.translate('restoreFirmwarePanel.flashButton')} ), lego: legoRegisteredTrademark, })}
> ) : ({i18n.translate('restoreFirmwarePanel.instruction2.ble.message')}
)}