ze-react-component-library
Version:
ZeroETP React Component Library
22 lines (20 loc) • 757 B
JavaScript
import "antd/es/alert/style";
import _Alert from "antd/es/alert";
import React from "react";
var SimilarWords = function SimilarWords(_a) {
// 20240502: 暂不成熟
// const { data, loading } = useRequest(() => requestSimilarWords(word), {
// initialData: [],
// formatResult: (res) => res.words,
// });
var word = _a.word,
onChangeWord = _a.onChangeWord;
return /*#__PURE__*/React.createElement(_Alert, {
message: /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("strong", null, word), "\xA0 \u672A\u80FD\u8BC6\u522B\uFF0C\u8BA1\u7B97\u7ED3\u679C\u5DF2\u5FFD\u7565\u8BE5\u8BCD\u8BED\u3002"),
type: "warning",
style: {
marginBottom: 10
}
});
};
export default SimilarWords;