@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
35 lines (34 loc) • 1.91 kB
JavaScript
/**
* CodeAnalizerComment: Updated 2 imports on 2024-09-22 14:49:52
* Update:: import { IKeySiteProps } to '@mikezimm/fps-core-v7/lib/banner/components/Gear/IKeySiteProps;'
* Update:: import { IWebpartBannerProps } to '@mikezimm/fps-core-v7/lib/banner/mainReact/IWebpartBannerProps;'
*/
import { addBeAUserIcons } from "./beAUserIcon";
import { addEasyPagesIcon } from './easyPagesIcon';
import { addExpandoIcon } from './expandoIcon';
import { addGearIcon } from './gearIcon';
import { addHomeIcon } from './goHomeIcon';
import { addParentIcon } from './goParentIcon';
/***
* db db d8888b. d8888b. .d8b. d888888b d88888b d8b db d88888b .d8b. d8888b.
* 88 88 88 `8D 88 `8D d8' `8b `~~88~~' 88' 888o 88 88' d8' `8b 88 `8D
* 88 88 88oodD' 88 88 88ooo88 88 88ooooo 88V8o 88 88ooooo 88ooo88 88oobY'
* 88 88 88~~~ 88 88 88~~~88 88 88~~~~~ 88 V8o88 88~~~~~ 88~~~88 88`8b
* 88b d88 88 88 .8D 88 88 88 88. 88 V888 88. 88 88 88 `88.
* ~Y8888P' 88 Y8888D' YP YP YP Y88888P VP V8P Y88888P YP YP 88 YD
*
*
*/
export function updateNearElements(parentNearElements, bannerProps, onClickShowSettings, onClickToggleExpando, _toggleEasyLinks) {
let nearElements = [];
nearElements = addBeAUserIcons(nearElements, bannerProps);
nearElements = addEasyPagesIcon(nearElements, bannerProps, _toggleEasyLinks);
if (bannerProps.showBannerGear === true) {
addGearIcon(nearElements, bannerProps, onClickShowSettings);
}
nearElements = addExpandoIcon(nearElements, bannerProps, onClickToggleExpando);
nearElements = addHomeIcon(nearElements, bannerProps);
nearElements = addParentIcon(nearElements, bannerProps);
return [...nearElements, ...parentNearElements];
}
//# sourceMappingURL=updateNearElements.js.map