2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2022-04-12 08:56:54 +00:00
|
|
|
import Helper from '@ember/component/helper';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
|
|
|
|
export default class TemporalWithinHelper extends Helper {
|
|
|
|
@service('temporal') temporal;
|
|
|
|
compute(params, hash) {
|
|
|
|
return this.temporal.within(params, hash);
|
|
|
|
}
|
|
|
|
}
|