diff --git a/src/components/profile/UserRouteButtons.tsx b/src/components/profile/UserRouteButtons.tsx index a9eeecb..de55516 100644 --- a/src/components/profile/UserRouteButtons.tsx +++ b/src/components/profile/UserRouteButtons.tsx @@ -1,10 +1,14 @@ import { css } from '@emotion/react'; import color from '@/styles/color'; import { signOut } from 'next-auth/react'; +import Toast from '@/components/common/toast/Toast'; +import { useState } from 'react'; import LogOutIcon from '../icons/LogoutIcon'; import ProfileSettingIcon from '../icons/ProfileSettingIcon'; const ProfileRouteButtons = () => { + const [toastMessage, setToastMessage] = useState(''); + // TODO: 미들웨어로 로그인 여부를 컨트롤할 예정 // TODO: 백엔드 로그아웃 로직이 변경되고 있는 중이라 아직 쓸 수 없는 코드가 있음 // const { data: session }: any = useSession(); @@ -14,20 +18,31 @@ const ProfileRouteButtons = () => { }; const profileEditHandler = () => { - console.log(1); + setToastMessage('개인 프로필 수정은 추후에 제공될 예정입니다. :)'); + }; + + const handleToastClose = () => { + setToastMessage(''); }; return ( -