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

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 full-stack chat application
 * with React frontend and AWS Bedrock backend.
 */
const App: React.FC<AppProps> = ({ router }) => {
    return (
        <RuntimeAppServer>
            <div className="app">
              <RuntimeRouterProvider router={router} />
            </div>
        </RuntimeAppServer>
    );
};

export default App;
