2023-04-10 15:36:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2020-10-26 19:25:34 +00:00
|
|
|
import { helper } from '@ember/component/helper';
|
|
|
|
|
|
|
|
// Generated at compile-time by ember-inline-svg
|
|
|
|
import SVGs from '../svgs';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Icons array
|
|
|
|
*
|
|
|
|
* Usage: {{#each (all-icons) as |icon|}}
|
|
|
|
*
|
|
|
|
* Returns the array of all icon strings available to {{x-icon}}. This is a bit of a hack
|
|
|
|
* since the above SVGs import isn't available in the Storybook context.
|
|
|
|
*/
|
|
|
|
export function allIcons() {
|
|
|
|
return Object.keys(SVGs);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default helper(allIcons);
|