import React from 'react';
import ReactDOM from 'react-dom/client';
import { configureApiClient } from '@ai-assistant/ui';
import { App } from './App';
import './styles/index.css';
import '@ai-assistant/ui/styles';

// 配置 API 客户端：Tauri 应用需要完整的后端 URL
configureApiClient({
  baseUrl: 'http://localhost:3000/api',
  wsBaseUrl: 'ws://localhost:3000/api',
  healthUrl: 'http://localhost:3000/health',
});

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);
