Harshith Mullapudi d111220aca changes
2025-06-12 00:41:00 +05:30

14 lines
364 B
TypeScript

import { Img } from "@react-email/components";
import * as React from "react";
import { getGlobalBasePath } from "./BasePath";
type ImageProps = Omit<Parameters<typeof Img>[0], "src"> & {
path: string;
};
export function Image({ path, ...props }: ImageProps) {
const basePath = getGlobalBasePath();
return <Img src={`${basePath}${path}`} {...props} />;
}