mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat: subagent phase 2 implementation
This commit is contained in:
parent
c49e4f6e8a
commit
5d8874205d
33 changed files with 2435 additions and 21 deletions
26
packages/cli/src/ui/hooks/useSubagentCreateDialog.ts
Normal file
26
packages/cli/src/ui/hooks/useSubagentCreateDialog.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2025 Qwen
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { useState, useCallback } from 'react';
|
||||
|
||||
export function useSubagentCreateDialog() {
|
||||
const [isSubagentCreateDialogOpen, setIsSubagentCreateDialogOpen] =
|
||||
useState(false);
|
||||
|
||||
const openSubagentCreateDialog = useCallback(() => {
|
||||
setIsSubagentCreateDialogOpen(true);
|
||||
}, []);
|
||||
|
||||
const closeSubagentCreateDialog = useCallback(() => {
|
||||
setIsSubagentCreateDialogOpen(false);
|
||||
}, []);
|
||||
|
||||
return {
|
||||
isSubagentCreateDialogOpen,
|
||||
openSubagentCreateDialog,
|
||||
closeSubagentCreateDialog,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue