15 lines
298 B
TypeScript
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>
|
|
);
|
|
}
|