continue-custom/extensions/cli/src/ui/AppRoot.tsx
2025-09-01 13:20:48 -07:00

26 lines
624 B
TypeScript

import React from "react";
import { NavigationProvider } from "./context/NavigationContext.js";
import { TUIChat } from "./TUIChat.js";
interface AppRootProps {
remoteUrl?: string;
configPath?: string;
initialPrompt?: string;
resume?: boolean;
fork?: string;
additionalRules?: string[];
additionalPrompts?: string[];
}
/**
* Root component that wraps TUIChat with all necessary providers
* This is the main entry point for the UI application
*/
export const AppRoot: React.FC<AppRootProps> = (props) => {
return (
<NavigationProvider>
<TUIChat {...props} />
</NavigationProvider>
);
};