2024-10-04 17:14:32 +00:00
|
|
|
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";
|
|
|
|
|
2024-10-08 22:14:02 +00:00
|
|
|
const git =
|
|
|
|
"M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371";
|
|
|
|
|
|
|
|
const matrix =
|
|
|
|
"M72 216a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V40a8 8 0 0 1 8-8h24a8 8 0 0 1 0 16H48v160h16a8 8 0 0 1 8 8M216 32h-24a8 8 0 0 0 0 16h16v160h-16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8m-32 88a32 32 0 0 0-56-21.13a31.93 31.93 0 0 0-40.71-6.15A8 8 0 0 0 72 96v64a8 8 0 0 0 16 0v-40a16 16 0 0 1 32 0v40a8 8 0 0 0 16 0v-40a16 16 0 0 1 32 0v40a8 8 0 0 0 16 0Z";
|
|
|
|
|
2024-10-04 17:14:32 +00:00
|
|
|
function getHTMLIcon(name: string): string {
|
|
|
|
const hashmap = {
|
|
|
|
magnifier: () => magnifier,
|
2024-10-08 22:14:02 +00:00
|
|
|
git: () => git,
|
|
|
|
matrix: () => matrix,
|
2024-10-04 17:14:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
return hashmap[name as keyof typeof hashmap]();
|
|
|
|
}
|
|
|
|
|
|
|
|
export { getHTMLIcon };
|