🛠️ Replace getSvgContent utility with getSource

This commit is contained in:
pheralb 2025-02-05 00:10:29 +00:00
parent e4c573fee8
commit 78194e135b

View File

@ -3,7 +3,7 @@
// Utils:
import { cn } from '@/utils/cn';
import { getSvgContent } from '@/utils/getSvgContent';
import { getSource } from '@/templates/getSource';
// Icons:
import {
@ -50,7 +50,9 @@
});
const insertSVG = async (url?: string) => {
const content = (await getSvgContent(url)) as string;
const content = (await getSource({
url
})) as string;
figmaInsertSVG(content);
};