mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
739075662c
* Migrating Icon to typescript and deprecating JS component * gw suggestions (#18434) --------- Co-authored-by: Garrett Bear <gwhisten@gmail.com>
24 lines
716 B
JavaScript
24 lines
716 B
JavaScript
import { Size } from '../../../../helpers/constants/design-system';
|
|
|
|
/**
|
|
* @deprecated `ICON_NAMES` has been deprecated in favour of the `IconName` enum
|
|
*
|
|
* import { Icon, IconName } from '../../component-library';
|
|
*/
|
|
/* eslint-disable prefer-destructuring*/ // process.env is not a standard JavaScript object, so we are not able to use object destructuring
|
|
export const ICON_NAMES = JSON.parse(process.env.ICON_NAMES);
|
|
|
|
/**
|
|
* @deprecated `ICON_SIZES` has been deprecated in favour of the `IconSize` enum
|
|
*
|
|
* import { Icon, IconSize, IconName } from '../../component-library';
|
|
*/
|
|
export const ICON_SIZES = {
|
|
XS: Size.XS,
|
|
SM: Size.SM,
|
|
MD: Size.MD,
|
|
LG: Size.LG,
|
|
XL: Size.XL,
|
|
AUTO: Size.inherit,
|
|
};
|