nagur-shareef-shaik commited on
Commit
9d680e6
·
verified ·
1 Parent(s): 8331548

Delete App.tsx

Browse files
Files changed (1) hide show
  1. App.tsx +0 -24
App.tsx DELETED
@@ -1,24 +0,0 @@
1
- import React, { useState } from 'react';
2
- import ProfilingScreen from './screens/ProfileScreen/ProfilingScreen';
3
- import ChatInterfaceScreen from './screens/ChatInterfaceScreen/ChatInterfaceScreen';
4
- import { UserProfile } from './interface';
5
-
6
- const App: React.FC = () => {
7
- const [phase, setPhase] = useState<'profiling' | 'chat'>('profiling');
8
- const [userProfile, setUserProfile] = useState<UserProfile>({});
9
-
10
- // Handler to move from profiling to chat, passing userProfile if needed
11
- const handleStartChat = (profile: UserProfile) => {
12
- console.log('Starting chat with profile:', profile);
13
- setUserProfile(profile);
14
- setPhase('chat');
15
- };
16
-
17
- return phase === 'profiling' ? (
18
- <ProfilingScreen onComplete={handleStartChat} />
19
- ) : (
20
- <ChatInterfaceScreen userProfile={userProfile} />
21
- );
22
- };
23
-
24
- export default App;