import type { LayoutNode } from 'officerdev';
import { WorkspaceView } from 'officerdev';
import { useDashboardState } from 'state/useDashboardState';
import { defaultLayout } from './defaultLayout';

export const TerminalScreen = () => {
  const workspace = useDashboardState<LayoutNode>('screens/terminal', defaultLayout);

  return (
    <div className="h-full w-full">
      <WorkspaceView
        workspace={workspace}
        locked
        appTypes={{ allowed: ['officerdev/terminal'], fallback: 'officerdev/terminal' }}
      />
    </div>
  );
};
