forked from
tokono.ma/diffuse
A music player that connects to your cloud/distributed storage.
1import { registerIconLibrary } from "@awesome.me/webawesome/dist/components/icon/library.js";
2import data from "@phosphor-icons/web/light/selection.json" with {
3 type: "json",
4};
5
6import { buildIconMap, makeSvgDataUrl } from "./_lib.js";
7
8const map = buildIconMap(data);
9
10registerIconLibrary("phosphor/light", {
11 resolver: (name) => {
12 const icon = map.get(name);
13 return icon ? makeSvgDataUrl(icon.paths, icon.attrs) : "";
14 },
15});