UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

8 lines (7 loc) 416 B
import React from 'react'; import Field from './Field'; var ImageField = function (_a) { var record = _a.record, source = _a.source, style = _a.style, width = _a.width, alt = _a.alt; return (React.createElement(Field, { record: record, source: source }, function (value) { return React.createElement("img", { src: value, alt: alt || 'Image', width: width, style: style }); })); }; export default ImageField;