/** * 充电页:扫码之前和扫码之后的站点信息 * @邠心vbe on 2023/03/10 */ import React from 'react'; import { Image, Text, View } from 'react-native'; import BadgeSelectItem from '../../components/BadgeSelectItem'; import TextView from '../../components/TextView'; import { ChargeStyle, TypeImage } from '../chargeV2/Charging'; export default StationInfoView = ({connectorInfo={}, isCharging, isPending}) => ( {/* {connectorInfo.connectorId} */} = 0 ? TypeImage.AC : TypeImage.DC}/> {connectorInfo.chargeType}{connectorInfo.wattage} {$t('charging.labelType')} {connectorInfo.rate}/{connectorInfo.rateType} {$t('charging.labelRate')} {connectorInfo.wattage}kW{/*connectorInfo.rateType*/} {$t('charging.labelPower')} { isCharging ? (isPending ? ( {$t('charging.statusPreparing')} ) : ( {$t('charging.statusCharging')} ) ) : (connectorInfo.isCheckThrough ? ( {$t('charging.statusAuthenticated')} ) : ( {$t('charging.statusNotConnected')} ) ) } {$t('charging.labelStatus')} );