feat: some shit

This commit is contained in:
2023-08-08 21:50:23 +02:00
parent 6123956f08
commit c7d0e97ac0
18 changed files with 482 additions and 73 deletions

14
components/Image.tsx Normal file
View File

@@ -0,0 +1,14 @@
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>
);
}