첫 커밋

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,46 @@
import { PATHS } from '@/shared/constants/paths';
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
import {
AccountUserTabKeys,
AccountUserTabProps
} from '../model/types';
export const AccountUserTab = ({
activeTab,
tid
}: AccountUserTabProps) => {
const { navigate } = useNavigate();
const onClickToNavigation = (tab: AccountUserTabKeys) => {
if(activeTab !== tab){
if(tab === AccountUserTabKeys.LoginAuthInfo){
navigate(PATHS.account.user.loginAuthInfo, {
state: {
tid: tid
}
});
}
else if(tab === AccountUserTabKeys.AccountAuth){
navigate(PATHS.account.user.accountAuth, {
state: {
tid: tid
}
});
}
}
};
return(
<>
<div className="subTab">
<button
className={`subtab-btn ${(activeTab === AccountUserTabKeys.LoginAuthInfo)? 'active': ''}` }
onClick={ () => onClickToNavigation(AccountUserTabKeys.LoginAuthInfo) }
> </button>
<button
className={`subtab-btn ${(activeTab === AccountUserTabKeys.AccountAuth)? 'active': ''}` }
onClick={ () => onClickToNavigation( AccountUserTabKeys.AccountAuth) }
></button>
</div>
</>
);
};