@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
23 lines (21 loc) • 674 B
JavaScript
import FlexBasic_default from "../../../Flex/FlexBasic.mjs";
import Alert_default from "../../../Alert/Alert.mjs";
import { styles } from "../style.mjs";
import { jsx } from "react/jsx-runtime";
//#region src/chat/ChatItem/components/ErrorContent.tsx
const ErrorContent = ({ message, error }) => {
return /* @__PURE__ */ jsx(FlexBasic_default, {
className: styles.errorContainer,
children: /* @__PURE__ */ jsx(Alert_default, {
closable: false,
extra: message,
showIcon: true,
type: "error",
...error
})
});
};
var ErrorContent_default = ErrorContent;
//#endregion
export { ErrorContent_default as default };
//# sourceMappingURL=ErrorContent.mjs.map