| 1 | import React from "react"; |
| 2 | |
| 3 | import { NavigationProvider } from "./context/NavigationContext.js"; |
| 4 | import { TUIChat } from "./TUIChat.js"; |
| 5 | |
| 6 | interface AppRootProps { |
| 7 | remoteUrl?: string; |
| 8 | configPath?: string; |
| 9 | initialPrompt?: string; |
| 10 | resume?: boolean; |
| 11 | fork?: string; |
| 12 | additionalRules?: string[]; |
| 13 | additionalPrompts?: string[]; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Root component that wraps TUIChat with all necessary providers |
| 18 | * This is the main entry point for the UI application |
| 19 | */ |
| 20 | export const AppRoot: React.FC<AppRootProps> = (props) => { |
| 21 | return ( |
| 22 | <NavigationProvider> |
| 23 | <TUIChat {...props} /> |
| 24 | </NavigationProvider> |
| 25 | ); |
| 26 | }; |