refactor(agent): move delete action to header

This commit is contained in:
RockChinQ
2026-08-25 23:34:35 +08:00
parent 2aceefce47
commit 114612a984
4 changed files with 213 additions and 215 deletions
@@ -23,6 +23,7 @@ export interface ProcessorDetailStatus {
interface ProcessorDetailWorkbenchProps {
title: string;
titleAction?: ReactNode;
headerActions?: ReactNode;
status?: ProcessorDetailStatus | null;
saveLabel: string;
saveFormId: string;
@@ -43,6 +44,7 @@ interface ProcessorDetailWorkbenchProps {
export default function ProcessorDetailWorkbench({
title,
titleAction,
headerActions,
status,
saveLabel,
saveFormId,
@@ -138,6 +140,7 @@ export default function ProcessorDetailWorkbench({
{saveLabel}
</Button>
)}
{activeView === 'workbench' && headerActions}
</div>
</div>