2025-06-28 21:29:05 +07:00
|
|
|
import '../../css/video.css';
|
|
|
|
|
2025-06-28 21:37:36 +07:00
|
|
|
function Image({ src = "bg-hallway.png", side = "middle", alt = "this is an image", onImageLoad }) {
|
2025-06-28 21:29:05 +07:00
|
|
|
const urlSource = `${import.meta.env.VITE_ASSETS_URL}/${src}`;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={`image-container ${side}`}>
|
2025-06-28 21:37:36 +07:00
|
|
|
<img src={urlSource} alt={alt} onLoad={onImageLoad} />
|
2025-06-28 21:29:05 +07:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Image;
|