The best way to control Claude Code, Codex and more from any computer or phone
| 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 | } |