첫 커밋

This commit is contained in:
focp212@naver.com
2025-09-05 15:36:48 +09:00
commit 05238b04c1
825 changed files with 176358 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import { PATHS } from '@/shared/constants/paths';
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
import {
AccountTabKeys,
AccountTabProps
} from '../model/types';
export const AccountTab = ({
activeTab
}: AccountTabProps) => {
const { navigate } = useNavigate();
const onClickToNavigation = (tab: AccountTabKeys) => {
if(activeTab !== tab){
if(tab === AccountTabKeys.UserManage){
navigate(PATHS.account.user.manage);
}
else if(tab === AccountTabKeys.PasswordManage){
navigate(PATHS.account.password.manage);
}
}
};
return(
<>
<div className="subTab">
<button
className={`subtab-btn ${(activeTab === AccountTabKeys.UserManage)? 'active': ''}` }
onClick={ () => onClickToNavigation(AccountTabKeys.UserManage) }
> </button>
<button
className={`subtab-btn ${(activeTab === AccountTabKeys.PasswordManage)? 'active': ''}` }
onClick={ () => onClickToNavigation(AccountTabKeys.PasswordManage) }
> </button>
</div>
</>
);
};