Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import React from 'react';
import { PlayCircle, Target, Sparkles } from 'lucide-react';
const SidebarApp = () => {
const openMainPanel = () => {
if (window.vscode) {
window.vscode.postMessage({ type: 'openMainPanel' });
}
};
return (
<div className="p-4 flex flex-col gap-4 bg-lab-bg-secondary text-white min-h-screen font-sans">
<h1 className="text-xl font-bold flex items-center gap-2">
<Sparkles className="text-lab-accent" /> ScienceLab
</h1>
<p className="text-sm text-lab-fg">
AI-assisted research environment.
</p>
<button
onClick={openMainPanel}
className="mt-4 flex items-center justify-center gap-2 bg-blue-600 hover:bg-blue-500 text-white py-2 px-4 rounded-md transition-colors"
>
<Target size={18} />
Open Researcher
</button>
<div className="mt-8 border-t border-lab-border pt-4">
<h2 className="text-sm font-semibold mb-2">Agent Status</h2>
<div className="flex items-center gap-2 text-sm text-green-400">
<PlayCircle size={16} /> Ready
</div>
</div>
</div>
);
};
export default SidebarApp; |