feat: some shit
This commit is contained in:
@@ -1,14 +1,25 @@
|
||||
import { isLocalImage } from "@lib/string.ts";
|
||||
|
||||
export function Image(
|
||||
props: { class: string; src: string; width?: number; height?: number },
|
||||
) {
|
||||
if (isLocalImage(props.src)) {
|
||||
}
|
||||
import * as CSS from "https://esm.sh/csstype@3.1.2";
|
||||
|
||||
const Image = (
|
||||
props: {
|
||||
class: string;
|
||||
src: string;
|
||||
alt?: string;
|
||||
width?: number | string;
|
||||
height?: number | string;
|
||||
style?: CSS.HtmlAttributes;
|
||||
},
|
||||
) => {
|
||||
return (
|
||||
<div>
|
||||
<img src={props.src} width={props.width} height={props.height} />
|
||||
</div>
|
||||
<img
|
||||
alt={props.alt}
|
||||
style={props.style}
|
||||
src={props.src}
|
||||
width={props.width}
|
||||
height={props.height}
|
||||
class={props.class}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default Image;
|
||||
|
||||
Reference in New Issue
Block a user