mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
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);
|