'use client';

import { XtermSession } from './xterm-session';

export const WorkspaceTerminal = ({
  jobId,
  active,
  visible = true,
  waitingLabel,
}: {
  jobId: string;
  active: boolean;
  visible?: boolean;
  waitingLabel?: string;
}) => (
  <XtermSession
    active={active}
    visible={visible}
    waitingLabel={waitingLabel}
    tokenUrl={`/api/agent-jobs/${jobId}/terminal-token`}
    sessionKey={jobId}
  />
);
