2023-03-24 14:51:05 +00:00
|
|
|
import { splitProps } from 'solid-js'
|
|
|
|
import type { JSX } from 'solid-js'
|
2023-05-04 15:55:38 +00:00
|
|
|
import { imageProxy } from '../../../utils/imageProxy'
|
2023-03-24 14:51:05 +00:00
|
|
|
|
|
|
|
export const Image = (props: JSX.ImgHTMLAttributes<HTMLImageElement>) => {
|
|
|
|
const [local, others] = splitProps(props, ['src'])
|
|
|
|
|
2023-05-04 15:55:38 +00:00
|
|
|
return <img src={imageProxy(local.src)} {...others} />
|
2023-03-24 14:51:05 +00:00
|
|
|
}
|