blob: bcfbf0b7ccb570bc02386a868687bb29f56d3b3b [file] [log] [blame]
Krishya73cd8822025-06-07 15:48:41 +08001import React from 'react';
2import UserProfileBase from './UserProfileBase';
3import UserLevelExperience from './UserLevelExperience';
223010094952a0f2025-06-07 18:58:16 +08004import './UserProfile.css';
2230100977253112025-04-15 21:30:39 +08005
223010097ff51f22025-04-15 21:35:28 +08006const UserProfile = () => {
Krishya73cd8822025-06-07 15:48:41 +08007 const [userId, setUserId] = React.useState(null);
2230100977253112025-04-15 21:30:39 +08008
Krishya73cd8822025-06-07 15:48:41 +08009 const loadExperienceInfo = (id) => {
10 setUserId(id);
22301009df48f962025-06-05 13:40:44 +080011 };
12
2230100977253112025-04-15 21:30:39 +080013 return (
Krishya73cd8822025-06-07 15:48:41 +080014 <div>
15 <UserProfileBase onLoadExperienceInfo={loadExperienceInfo} />
16 {userId && <UserLevelExperience userId={userId} />}
2230100977253112025-04-15 21:30:39 +080017 </div>
18 );
19};
20
Krishya73cd8822025-06-07 15:48:41 +080021export default UserProfile;