"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) => ( ))}
); } /** 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" ? ( ) : ( )} ))} ); }