"use client"; import { Badge } from "@kandev/ui/badge"; import { SessionPanelContent } from "@kandev/ui/pannel-session"; import { TabsContent } from "@kandev/ui/tabs"; import { ShellTerminal } from "@/components/task/shell-terminal"; import { PassthroughTerminal } from "@/components/task/passthrough-terminal"; import type { RepositoryScript } from "@/lib/types/http"; import type { Terminal } from "@/hooks/domains/session/use-terminals"; /** Commands tab content showing repository scripts */ export function CommandsTabContent({ scripts, onRunCommand, }: { scripts: RepositoryScript[]; onRunCommand: (script: RepositoryScript) => void; }) { return ( {scripts.map((script) => ( onRunCommand(script)} className="flex items-center gap-2 rounded-md border border-border px-3 py-2 text-sm text-left hover:bg-muted cursor-pointer min-w-0" > {script.name} {script.command} ))} ); } /** Terminal tab contents (dev-server and shell terminals) */ export function TerminalTabContents({ terminals, environmentId, devProcessId, devOutput, isStoppingDev, }: { terminals: Terminal[]; environmentId: string | null; devProcessId: string | null | undefined; devOutput: string | undefined; isStoppingDev: boolean; }) { return ( <> {terminals.map((terminal) => ( {terminal.type === "dev-server" ? ( ) : ( )} ))} > ); }