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

9 lines
254 B
JavaScript

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