@sitecore/sc-contenthub-blok
Version:
A UI library for [Sitecore Content Hub](https://doc.sitecore.com/ch/).
21 lines • 1.24 kB
TypeScript
import { IconDownloadManager } from "./IconDownloadManager";
export interface WebAppConfiguration {
iconsUrl: string;
}
export declare const useGetIconBaseUrl: (ignoreOverride: boolean) => ((iconName: string | undefined) => string | undefined);
export declare const getIconDownLoadManager: () => IconDownloadManager;
/**
* Returns the content of an svg element that is referencing the actual svg path that has already been defined somewhere else on the DOM.
* @param iconName - Name of the icon
* @param ignoreOverride - Indicates whether the icon overrides should be ignored
* @param isInView - Indicates whether the icon should be loaded or not
*/
export declare const useReferencedSvgIcon: (iconName: string | undefined, ignoreOverride?: boolean, isInView?: boolean) => string | undefined;
/**
* Returns the content of an svg element with its path inlined.
* @param iconName - Name of the icon
* @param ignoreOverride - Indicates whether the icon overrides should be ignored
* @param isInView - Indicates whether the icon should be loaded or not
*/
export declare const useSvgIconPath: (iconName: string | undefined, ignoreOverride?: boolean, isInView?: boolean) => string | undefined;
//# sourceMappingURL=useSvgIcon.d.ts.map