feat(assets): implement useImages composable
This commit is contained in:
6
app/composables/useImages.ts
Normal file
6
app/composables/useImages.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export const useImages = (...paths: string[]) =>
|
||||||
|
paths.map((path) => {
|
||||||
|
const img = document.createElement("img");
|
||||||
|
img.src = path;
|
||||||
|
return img;
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user