mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
12 lines
303 B
JavaScript
12 lines
303 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]) {
|
||
|
return getSymbol(currency);
|
||
|
}
|
||
|
}
|