mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
refactor(tui): drop unused ComposerTab.onClose and composer re-export (#53002)
This commit is contained in:
committed by
GitHub
Unverified
parent
552d2b9c8a
commit
b79da2697a
@@ -9,7 +9,6 @@ export interface ComposerTab {
|
||||
id: string
|
||||
label: string
|
||||
hints?: () => ComposerHint[]
|
||||
onClose?: () => void
|
||||
}
|
||||
|
||||
export const ComposerContext = createContext<{
|
||||
|
||||
@@ -9,8 +9,6 @@ import { ShellTab } from "./shell-tab"
|
||||
import { TerminalsTab } from "./terminals-tab"
|
||||
import { ComposerContext, type ComposerTab } from "./context"
|
||||
|
||||
export { useComposerTab, type ComposerHint } from "./context"
|
||||
|
||||
export type ComposerProps = {
|
||||
sessionID: string
|
||||
open: boolean
|
||||
@@ -42,8 +40,6 @@ export function Composer(props: ComposerProps) {
|
||||
})
|
||||
|
||||
function close() {
|
||||
const tab = activeTab()
|
||||
tab?.onClose?.()
|
||||
props.onClose?.()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user