// import { reactive } from 'vue';
import CSConnector from './CSConnector.vue';
import type { ChargingStationData, ChargingStationInfo, ConnectorStatus } from '@/types';
-import Utils from '@/composables/Utils';
+import { ifUndefined } from '@/composables/Utils';
const props = defineProps<{
chargingStation: ChargingStationData;
return getInfo().hashId;
}
function getId(): string {
- return Utils.ifUndefined<string>(getInfo().chargingStationId, 'Ø');
+ return ifUndefined<string>(getInfo().chargingStationId, 'Ø');
}
function getModel(): string {
return getInfo().chargePointModel;
return getInfo().chargePointVendor;
}
function getFirmwareVersion(): string {
- return Utils.ifUndefined<string>(getInfo().firmwareVersion, 'Ø');
+ return ifUndefined<string>(getInfo().firmwareVersion, 'Ø');
}
function getStarted(): string {
return props.chargingStation.started === true ? 'Yes' : 'No';