13 lines
331 B
TypeScript
13 lines
331 B
TypeScript
|
const magnifier =
|
||
|
"M232.49 215.51L185 168a92.12 92.12 0 1 0-17 17l47.53 47.54a12 12 0 0 0 17-17ZM44 112a68 68 0 1 1 68 68a68.07 68.07 0 0 1-68-68";
|
||
|
|
||
|
function getHTMLIcon(name: string): string {
|
||
|
const hashmap = {
|
||
|
magnifier: () => magnifier,
|
||
|
};
|
||
|
|
||
|
return hashmap[name as keyof typeof hashmap]();
|
||
|
}
|
||
|
|
||
|
export { getHTMLIcon };
|