github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/helpers/all-icons.js (about) 1 import { helper } from '@ember/component/helper'; 2 3 // Generated at compile-time by ember-inline-svg 4 import SVGs from '../svgs'; 5 6 /** 7 * Icons array 8 * 9 * Usage: {{#each (all-icons) as |icon|}} 10 * 11 * Returns the array of all icon strings available to {{x-icon}}. This is a bit of a hack 12 * since the above SVGs import isn't available in the Storybook context. 13 */ 14 export function allIcons() { 15 return Object.keys(SVGs); 16 } 17 18 export default helper(allIcons);