mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 00:54:50 +03:00
82470a723c
no refs
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
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]) {
|
|
if (currency) {
|
|
return getSymbol(currency);
|
|
}
|
|
return '';
|
|
}
|
|
}
|