Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
14
node_modules/astro/dist/assets/utils/imageKind.js
generated
vendored
Normal file
14
node_modules/astro/dist/assets/utils/imageKind.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
function isESMImportedImage(src) {
|
||||
return typeof src === "object";
|
||||
}
|
||||
function isRemoteImage(src) {
|
||||
return typeof src === "string";
|
||||
}
|
||||
async function resolveSrc(src) {
|
||||
return typeof src === "object" && "then" in src ? (await src).default ?? await src : src;
|
||||
}
|
||||
export {
|
||||
isESMImportedImage,
|
||||
isRemoteImage,
|
||||
resolveSrc
|
||||
};
|
Reference in New Issue
Block a user