You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/admin/app/ra/components/Image.tsx

10 lines
282 B
TypeScript

import React, { ImgHTMLAttributes } from 'react';
import { parseUrlStr } from '../utils';
export const Image: React.FC<ImgHTMLAttributes<HTMLImageElement>> = React.memo(
(props) => {
return <img {...props} src={parseUrlStr(props.src)} />;
}
);
Image.displayName = 'Image';