Add Explorer toolbar and CRUD actions

cgen-d9faee6ecac24738969109faa032560b
This commit is contained in:
Builder.io 2025-09-17 09:57:25 +00:00
parent 38725741df
commit a997c8fb08

View file

@ -110,6 +110,11 @@ export function SwitchPage() {
<div className="switch-pane">
<div className="switch-pane-header">Explorer</div>
<div className="switch-pane-body">
<div style={{ marginBottom: 8 }}>
<button className="switch-secondary-btn" onClick={onNewFile}>New File</button>
<button className="switch-secondary-btn" onClick={onNewFolder}>New Folder</button>
<button className="switch-secondary-btn" onClick={onRefresh}>Refresh</button>
</div>
{tree.length === 0 ? (
<div className="switch-empty">No files</div>
) : (