export function convertModeObjectToArray(mode: { | |
soft_mode: number; | |
vehicle: number; | |
}) { | |
const softModePercentage = (mode.soft_mode * 100).toFixed(2) + "%"; | |
const vehiclePercentage = (mode.vehicle * 100).toFixed(2) + "%"; | |
return [softModePercentage, vehiclePercentage]; | |
} | |