send() 对校正会话不发 /api/consult,草稿保留并打开校正面。 普通输入框只有禁用态。咨询接口把类型不对改成 409 session_not_consultation。 删除和回退不再直接切到校正会话。
19 lines
443 B
TypeScript
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>
|
|
);
|
|
}
|