/*
 * Runtime Web – Unified Serverless Framework for Full-Stack TypeScript Applications
 * Documentation: https://runtimeweb.com/docs/getting-started
 *
 * @template: ai
 */

import * as React from 'react';
import { RuntimeAppServer, RuntimeRouterProvider } from '@worktif/runtime';

interface AppProps {
    router: any;
}

/**
 * Root application component that wraps the router provider.
 * This AI chat template provides a minimal React frontend
 * that can be extended with chat UI components.
 */
const App: React.FC<AppProps> = ({ router }) => {
    return (
      <RuntimeAppServer>
        <div className="app">
            <RuntimeRouterProvider router={router} />
        </div>
      </RuntimeAppServer>
    );
};

export default App;
