import ReadOnlyView from "./ReadOnlyView.js";
import EditView from "./EditView.js";
import React from "react";
//#region src/components/pisellEmail/components/DisabledView.tsx
/**
* PisellEmail 禁用态视图组件
* 
* 职责：
* - 渲染禁用状态的邮箱组件
* - 根据原始 mode 选择渲染 ReadOnlyView 或 EditView
* - 应用禁用样式（透明度 40%）
* 
* @param props 组件 Props
*/
const DisabledView = (props) => {
	const { mode = "edit" } = props;
	return /* @__PURE__ */ React.createElement("div", { className: "pisell-email-disabled" }, mode === "read" ? /* @__PURE__ */ React.createElement(ReadOnlyView, props) : /* @__PURE__ */ React.createElement(EditView, props));
};
//#endregion
export { DisabledView as default };
