feat: some shit
This commit is contained in:
		
							
								
								
									
										14
									
								
								components/Image.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								components/Image.tsx
									
									
									
									
									
										Normal 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> | ||||
|   ); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user