2021-04-22 19:47:19 +03:00
|
|
|
import Helper from '@ember/component/helper';
|
|
|
|
import {getSymbol} from 'ghost-admin/utils/currency';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default class CurrencySymbolHelper extends Helper {
|
|
|
|
@service feature;
|
|
|
|
|
|
|
|
compute([currency]) {
|
2021-10-20 09:21:54 +03:00
|
|
|
if (currency) {
|
|
|
|
return getSymbol(currency);
|
|
|
|
}
|
|
|
|
return '';
|
2021-04-22 19:47:19 +03:00
|
|
|
}
|
|
|
|
}
|