let getSvgContent = function()

in _includes/icons/Icon.11ty.tsx [6:21]


let getSvgContent = function (file: string): string {
	if (svgCache.has(file)) {
		return svgCache.get(file) as string;
	}

	let relativeFilePath = path.join(
		"node_modules",
		"@rescui",
		"icons",
		"svg",
		`${file}.svg`
	);
	let data = fs.readFileSync(relativeFilePath).toString("utf8");
	svgCache.set(file, data);
	return data;
};