mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-12 16:09:33 +00:00
14 lines
353 B
TypeScript
14 lines
353 B
TypeScript
export interface InlineIconSource {
|
|
/** The SVG viewBox for the icon. */
|
|
viewBox: string;
|
|
/** Trusted inner SVG markup for the icon. */
|
|
markup: string;
|
|
}
|
|
|
|
/**
|
|
* Get the lookup key for a server-resolved inline SVG source.
|
|
*/
|
|
export function getInlineIconSourceKey(style: string, icon: string): string {
|
|
return `${style}/${icon}`;
|
|
}
|