open-nomad/ui/app/helpers/format-duration.js

9 lines
274 B
JavaScript
Raw Normal View History

import Helper from '@ember/component/helper';
import formatDuration from '../utils/format-duration';
function formatDurationHelper([duration], { units, longForm }) {
return formatDuration(duration, units, longForm);
}
export default Helper.helper(formatDurationHelper);