@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
38 lines (37 loc) • 1.22 kB
JavaScript
/**
* CodeAnalizerComment: Updated 3 imports on 2024-09-22 02:56:43
* Update:: import { IFPSIconApps } to '@mikezimm/fps-core-v7/lib/components/atoms/Icons/IFPSAppIcons;'
* Update:: import { IAppStyle } to '@mikezimm/fps-core-v7/lib/components/atoms/Icons/IFPSAppIcons;'
* Update:: import { AppStyles } to '@mikezimm/fps-core-v7/lib/components/atoms/Icons/IFPSAppIcons;'
*/
import { AppStyles } from './IFPSAppIcons';
export function getIconStyles(app, color) {
let result = {};
let thisApp = AppStyles[app];
if (thisApp.background) {
result.background = thisApp.background;
}
if (thisApp.padding) {
result.padding = thisApp.padding;
}
if (thisApp.margin) {
result.margin = thisApp.margin;
}
if (color) {
result.color = color;
}
else if (thisApp.color) {
result.color = thisApp.color;
}
if (thisApp.borderRadius) {
result.borderRadius = thisApp.borderRadius;
}
if (thisApp.opacity) {
result.opacity = thisApp.opacity;
}
if (thisApp.fontSize) {
result.fontSize = thisApp.fontSize;
}
return result;
}
//# sourceMappingURL=getIconStyles.js.map