26 lines
624 B
TypeScript
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>
|
|
);
|
|
};
|