Files
Claude e97b50a916 Organize interfaces and utilities into centralized folders
Move all TypeScript interfaces from component files to /lib/interfaces folder
Move terminal utility functions to /lib/utils folder
Update all component imports to use centralized interfaces and utilities
Fix JSX.Element type to React.ReactElement in terminal utils

This improves code organization and reduces duplication across components

https://claude.ai/code/session_G4kZm
2026-01-30 23:16:45 +00:00

38 lines
826 B
TypeScript

import React from 'react';
import { SimpleTerminalProps } from '@/lib/interfaces/terminal';
import TerminalOutput from './TerminalOutput';
import CommandInput from './CommandInput';
export default function SimpleTerminal({
output,
command,
workdir,
isExecuting,
isMobile,
containerName,
outputRef,
onCommandChange,
onExecute,
onKeyPress,
}: SimpleTerminalProps) {
return (
<>
<TerminalOutput
output={output}
containerName={containerName}
outputRef={outputRef}
/>
<CommandInput
command={command}
workdir={workdir}
isExecuting={isExecuting}
isMobile={isMobile}
containerName={containerName}
onCommandChange={onCommandChange}
onExecute={onExecute}
onKeyPress={onKeyPress}
/>
</>
);
}