@ray-js/components
Version:
Ray basic components
21 lines • 733 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
const _excluded = ["style", "className", "mode"];
import clsx from 'clsx';
import * as React from 'react';
import { inlineStyle } from '@ray-js/framework-shared';
import { Image as RemaxImage } from '@ray-js/adapter';
const Image = props => {
const {
style,
className,
mode = 'scaleToFill'
} = props,
restProps = _objectWithoutProperties(props, _excluded);
return /*#__PURE__*/React.createElement(RemaxImage, _extends({
style: inlineStyle(style),
className: clsx('ray-image', className),
mode: mode
}, restProps));
};
export default Image;