Open History to see the last commit
1import { SymbolView } from "../../components/AppSymbol";
2import { Pressable, View } from "react-native";
3
4import { AppText as Text } from "../../components/AppText";
5import { useThemeColor } from "../../lib/useThemeColor";
6
7export function WorkspaceEmptyDetail(props: { readonly onStartNewTask?: () => void }) {
8 const iconColor = useThemeColor("--color-icon-subtle");
9
10 return (
11 <View className="flex-1 items-center justify-center bg-screen px-10">
12 <View className="max-w-[360px] items-center gap-3">
13 <SymbolView name="sidebar.left" size={34} tintColor={iconColor} type="hierarchical" />
14 <Text className="text-center text-xl font-t3-bold">Select a thread</Text>
15 <Text className="text-center text-base text-foreground-muted">
16 Choose a thread from the sidebar or start a new task.
17 </Text>
18 {props.onStartNewTask ? (
19 <Pressable
20 accessibilityRole="button"
21 className="mt-2 flex-row items-center gap-2 rounded-full bg-primary px-5 py-3 active:opacity-70"
22 onPress={props.onStartNewTask}
23 >
24 <Text className="text-base font-t3-bold text-primary-foreground">New Task</Text>
25 </Pressable>
26 ) : null}
27 </View>
28 </View>
29 );
30}