fix: Remove image float and positioning options in comments (#5014)

* cleanup

* Split Image into SimpleImage

* ts
This commit is contained in:
Tom Moor
2023-03-09 22:17:16 -05:00
committed by GitHub
parent 8fc4cb846a
commit e786888dfb
17 changed files with 764 additions and 609 deletions

View File

@@ -0,0 +1,14 @@
import * as React from "react";
import { cdnPath } from "../../utils/urls";
type Props = {
alt: string;
src: string;
title?: string;
width?: number;
height?: number;
};
export default function Img({ src, alt, ...rest }: Props) {
return <img src={cdnPath(src)} alt={alt} {...rest} />;
}