type PathType = "image" | "icons"; export const requireImg = (imgPath: string, basePath?: PathType) => { basePath = basePath || "image"; return new URL(`../../assets/${basePath}/${imgPath}`, import.meta.url).href; };