27 lines
610 B
TypeScript
27 lines
610 B
TypeScript
import { DialogSelect } from "@tui/ui/dialog-select"
|
|
import { useRoute } from "@tui/context/route"
|
|
|
|
export function DialogSubagent(props: { sessionID: string }) {
|
|
const route = useRoute()
|
|
|
|
return (
|
|
<DialogSelect
|
|
title="Subagent Actions"
|
|
options={[
|
|
{
|
|
title: "Open",
|
|
value: "subagent.view",
|
|
description: "the subagent's session",
|
|
onSelect: (dialog) => {
|
|
route.navigate({
|
|
type: "session",
|
|
sessionID: props.sessionID,
|
|
})
|
|
dialog.clear()
|
|
},
|
|
},
|
|
]}
|
|
/>
|
|
)
|
|
}
|