Refactor /resume command to use dialog instead of standalone Ink app

This commit is contained in:
Alexander Farber 2025-12-12 21:34:26 +01:00
parent 2de50ae436
commit 12877ac849
No known key found for this signature in database
9 changed files with 471 additions and 75 deletions

View file

@ -0,0 +1,25 @@
/**
* @license
* Copyright 2025 Qwen Code
* SPDX-License-Identifier: Apache-2.0
*/
import { useState, useCallback } from 'react';
export function useResumeCommand() {
const [isResumeDialogOpen, setIsResumeDialogOpen] = useState(false);
const openResumeDialog = useCallback(() => {
setIsResumeDialogOpen(true);
}, []);
const closeResumeDialog = useCallback(() => {
setIsResumeDialogOpen(false);
}, []);
return {
isResumeDialogOpen,
openResumeDialog,
closeResumeDialog,
};
}