memorium/components/Image.tsx
2023-08-08 21:50:23 +02:00

15 lines
298 B
TypeScript

import { isLocalImage } from "@lib/string.ts";
export function Image(
props: { class: string; src: string; width?: number; height?: number },
) {
if (isLocalImage(props.src)) {
}
return (
<div>
<img src={props.src} width={props.width} height={props.height} />
</div>
);
}