The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 40 lines 1.46 KB
Raw
1 import { T } from "gt-react";
2 import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "./ui/empty";
3 import { SidebarInset } from "./ui/sidebar";
4 import { isElectron } from "../env";
5 import { WorkspacePageHeader } from "./WorkspacePageHeader";
6
7 export function NoActiveThreadState() {
8 return (
9 <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none">
10 <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background">
11 <WorkspacePageHeader electron={isElectron} className="border-b border-border">
12 {isElectron ? (
13 <span className="text-xs text-muted-foreground/50">
14 <T>No active thread</T>
15 </span>
16 ) : (
17 <div className="flex items-center gap-2">
18 <span className="text-sm font-medium text-foreground md:text-muted-foreground/60">
19 <T>No active thread</T>
20 </span>
21 </div>
22 )}
23 </WorkspacePageHeader>
24
25 <Empty className="flex-1">
26 <div className="w-full max-w-lg px-8 py-12">
27 <EmptyHeader className="max-w-none">
28 <EmptyTitle>
29 <T>Pick a thread to continue</T>
30 </EmptyTitle>
31 <EmptyDescription>
32 <T>Select an existing thread or create a new one to get started.</T>
33 </EmptyDescription>
34 </EmptyHeader>
35 </div>
36 </Empty>
37 </div>
38 </SidebarInset>
39 );
40 }