We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c264aa commit 8dd49a3Copy full SHA for 8dd49a3
src/lib/tools/getAssetUrl.ts
@@ -0,0 +1,3 @@
1
+export function getAssetUrl(componentOrUrl: { src: string } | string): string {
2
+ return typeof componentOrUrl === "string" ? componentOrUrl : componentOrUrl.src;
3
+}
0 commit comments