react-json-schema-editor-antd
Version:
Json Schema Editor
20 lines • 631 B
JavaScript
import { Typography } from 'antd';
import React from 'react';
import { useTranslation } from 'react-i18next';
import IconFont from "../IconFont";
import "./index.less";
var Empty = function Empty(_ref) {
var value = _ref.value,
height = _ref.height;
var _useTranslation = useTranslation(),
t = _useTranslation.t;
return /*#__PURE__*/React.createElement("div", {
style: {
height: height
},
className: "schema-empty"
}, /*#__PURE__*/React.createElement(IconFont, {
type: "icon-empty"
}), /*#__PURE__*/React.createElement(Typography.Text, null, value || t('no_data')));
};
export default Empty;