import { FrontendTranslationData , TimeFormat } from "custom-card-helpers" ; param locale export const formatTime = ( locale ? ) : string => { let format ; switch ( locale ?. time_format ) { case TimeFormat . am_pm : format = "hh:mma" ; break ; case TimeFormat . twenty_four : format = "HH:mm" ; break ; case TimeFormat . system : format = undefined ; break ; default : format = undefined ; } return format ? format . toString ( ) : "" ; } ;