Files
threshold-ui/addons/core/addon/helpers/company-copyright.js
T

15 lines
411 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Helper from '@ember/component/helper';
import { getOwner } from '@ember/application';
export default class extends Helper {
compute() {
const config = getOwner(this).resolveRegistration('config:environment');
const currentYear = new Date().getFullYear();
return `© ${currentYear} ${config.companyName}`;
}
}