-
- scrollToSection('section2')}> 서비스 체험
- scrollToSection('section3')}> 기능 살펴보기
-
-
+
AI 메일 생성하기
@@ -120,12 +123,8 @@ const AiButton = styled(Button)`
}
`;
-const MidWrapper = styled.div`
+const AuthWrapper = styled.div`
cursor: pointer;
- margin: 0px 20px;
- @media (max-width: ${breakpoints.md}) {
- display: none;
- }
`;
const LogoLink = styled(Link)`
diff --git a/src/components/Layout/MainHeader.tsx b/src/components/Layout/Header/MainHeader.tsx
similarity index 83%
rename from src/components/Layout/MainHeader.tsx
rename to src/components/Layout/Header/MainHeader.tsx
index fe0ec50..5243bc9 100644
--- a/src/components/Layout/MainHeader.tsx
+++ b/src/components/Layout/Header/MainHeader.tsx
@@ -3,6 +3,8 @@ import { Link } from 'react-router-dom';
import { Button } from '@chakra-ui/react';
import { breakpoints } from '@/styles/variants';
import { useMail } from '@/Provider/MailContext';
+import { RouterPath } from '@/routes/path';
+import { useAuth } from '@/Provider/Auth';
const scrollToSection = (sectionId: string) => {
const element = document.getElementById(sectionId);
@@ -31,11 +33,24 @@ export const MainHeader = () => {
});
};
+ const { authInfo } = useAuth();
+
return (