(props: {
readonly integrations: readonly DemoIntegration[];
readonly children: ReactNode;
})
| 24 | } |
| 25 | |
| 26 | export function Shell(props: { |
| 27 | readonly integrations: readonly DemoIntegration[]; |
| 28 | readonly children: ReactNode; |
| 29 | }) { |
| 30 | return ( |
| 31 | <div className="flex h-full min-h-0 w-full"> |
| 32 | <aside className="flex w-60 shrink-0 flex-col border-r border-sidebar-border bg-sidebar"> |
| 33 | <div className="flex h-12 shrink-0 items-center gap-2 border-b border-sidebar-border px-4"> |
| 34 | <span className="font-mono text-sm font-medium tracking-tight text-foreground"> |
| 35 | executor |
| 36 | </span> |
| 37 | <span className="ml-auto truncate font-mono text-[11px] text-muted-foreground"> |
| 38 | theo's org |
| 39 | </span> |
| 40 | </div> |
| 41 | |
| 42 | <nav className="flex flex-1 flex-col overflow-y-auto p-2"> |
| 43 | {NAV_ITEMS.map((label) => ( |
| 44 | <NavItem key={label} label={label} active={label === "Integrations"} /> |
| 45 | ))} |
| 46 | |
| 47 | <span className="mt-5 mb-1 px-2.5 text-xs font-medium uppercase tracking-widest text-muted-foreground"> |
| 48 | Integrations |
| 49 | </span> |
| 50 | |
| 51 | {props.integrations.length === 0 ? ( |
| 52 | <div className="px-2.5 py-2 text-sm leading-relaxed text-muted-foreground"> |
| 53 | No integrations yet |
| 54 | </div> |
| 55 | ) : ( |
| 56 | <div className="flex flex-col gap-px"> |
| 57 | {props.integrations.map((integration) => ( |
| 58 | <span |
| 59 | key={integration.slug} |
| 60 | className="group flex items-center gap-2 rounded-md px-2.5 py-1.5 text-xs text-sidebar-foreground transition-colors hover:bg-sidebar-active/60 hover:text-foreground" |
| 61 | > |
| 62 | {integration.icon ? ( |
| 63 | <img |
| 64 | src={integration.icon} |
| 65 | alt="" |
| 66 | className="size-4 rounded-sm object-contain" |
| 67 | /> |
| 68 | ) : ( |
| 69 | <span className="size-4 rounded-sm bg-muted" /> |
| 70 | )} |
| 71 | <span className="flex-1 truncate">{integration.name}</span> |
| 72 | </span> |
| 73 | ))} |
| 74 | </div> |
| 75 | )} |
| 76 | </nav> |
| 77 | |
| 78 | <div className="shrink-0 border-t border-sidebar-border px-4 py-2.5"> |
| 79 | <div className="flex flex-col gap-1.5 text-xs leading-none text-muted-foreground"> |
| 80 | <span className="flex items-center justify-between"> |
| 81 | <span>Commands</span> |
| 82 | <span className="font-mono text-[11px]">⌘K</span> |
| 83 | </span> |
nothing calls this directly
no outgoing calls
no test coverage detected