Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

WorkspaceEmptyDetail.tsx

32 lines1.2 KB

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