Files
Jyotisha/frontend/src/components/rectification-composer-reopen.tsx
T
jesse-ux 6d81062be9
Independent Staging Quality Gate / validate (push) Canceled after 5m37s
Independent Staging Quality Gate / publish (push) Canceled after 0s
fix(web): 校正会话上不再出现可用的普通输入框
send() 对校正会话不发 /api/consult,草稿保留并打开校正面。
普通输入框只有禁用态。咨询接口把类型不对改成 409 session_not_consultation。
删除和回退不再直接切到校正会话。
2026-09-17 20:06:25 +08:00

19 lines
443 B
TypeScript

import { RECTIFICATION_REOPEN_LABEL } from "@/lib/rectification-session-composer-guard";
export function RectificationComposerReopen({
message,
onReopen,
}: {
message: string;
onReopen: () => void;
}) {
return (
<div className="error-message" role="alert">
<p>{message}</p>
<button type="button" className="button-secondary" onClick={onReopen}>
{RECTIFICATION_REOPEN_LABEL}
</button>
</div>
);
}