jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
15 lines (12 loc) • 561 B
JavaScript
import React__default from 'react';
/**
* @file index.tsx
*
* @fileoverview Renders and image with some predefined properties like sizes and lazy loading.
*/
/**
* Displays an image with optional lazy loading and size attributes.
*/
const Image = ({ src, width, height, lazy = true, alt, title }) => (React__default.createElement("img", Object.assign({ src: src }, (width ? { width } : null), (height ? { height } : null), (lazy ? { loading: 'lazy' } : null), { alt: alt }, (title ? { title } : null))));
export default Image;
export { Image };