import { TUseRegisterDeviceFormLogic } from './types' ; import { useTranslation } from 'react-i18next' ; import { createDeviceInfoForm } from './deviceInfoForm' ; import { createDeviceLocationForm } from './deviceLocationForm' ; import { createDeviceImagesForm } from './deviceImagesForm' ; export const useRegisterDeviceFormLogic = ( { allFuelTypes , allDeviceTypes , allRegions , myAccounts , externalDeviceId , platformCountryCode , singleAccountMode , } ) => { const { t } = useTranslation ( ) ; return { heading : t ( 'device.register.formTitle' ) , forms : [ createDeviceInfoForm ( t , allFuelTypes , allDeviceTypes , myAccounts , externalDeviceId , singleAccountMode ) , createDeviceLocationForm ( t , allRegions , platformCountryCode ) , createDeviceImagesForm ( t ) , ] , backButtonText : t ( 'general.buttons.back' ) , } ; } ;