import React from 'react'; export default function Console({ logs }) { const bottomRef = React.useRef(null); React.useEffect(() => { bottomRef.current?.scrollIntoView({ behavior: 'smooth' }); }, [logs]); return (
{logs.length === 0 && (
System Ready. Awaiting input...
)} {logs.map((log, i) => (
[{log.time}] {log.message}
))}
); }