@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
tsx 30 lines 990 Bytes
Raw
1 import { useMessages } from "gt-react-native";
2 import type { ReactNode } from "react";
3 import { StyleSheet, View } from "react-native";
4
5 import { StandaloneStack } from "../nested-stacks";
6 import { pageRoute } from "../route-options";
7 import { getCompactBrandHeaderOptions } from "./brand-header-options";
8
9 /** The iOS sidebar column hosts its own stack so it gets a native bar with the brand title. */
10 export function WorkspaceSidebarColumn(props: {
11 readonly width: number;
12 readonly children: ReactNode;
13 }) {
14 const m = useMessages();
15 const options = {
16 ...pageRoute(),
17 ...getCompactBrandHeaderOptions({ fontSize: 18, fontWeight: "800" }, m),
18 };
19 return (
20 <View
21 testID="thread-navigation-sidebar"
22 className="flex-1 border-border bg-drawer"
23 style={{ borderRightWidth: StyleSheet.hairlineWidth, width: props.width }}
24 >
25 <StandaloneStack surface="sidebar" options={options}>
26 {props.children}
27 </StandaloneStack>
28 </View>
29 );
30 }