diff --git a/components/ActivityDetails/ActivityDetails.tsx b/components/ActivityDetails/ActivityDetails.tsx index 577b758..cf4331e 100644 --- a/components/ActivityDetails/ActivityDetails.tsx +++ b/components/ActivityDetails/ActivityDetails.tsx @@ -29,12 +29,15 @@ import { darkModeState } from '@/states/themeState'; import { ShareButton } from '../ShareButton/ShareButton'; import { ViewedActivitiesState } from '@/states/ViewedState'; import { ViewedActivityProps } from '../ViewedActivities/ViewedActivities.type'; +import useLoginState from '@/hooks/useLoginState'; import profileThumbnail from '@/public/image/profile-circle-icon-512x512-zxne30hp.png'; +import SendChat from '../Chat/SendChat'; export default function ActivityDetails({ id }: ActivityDetailsProps) { const router = useRouter(); const [isOpen, setIsOpen] = useState(false); const isDarkMode = useRecoilValue(darkModeState); + const isLogined = useLoginState(); const [currentPage, setCurrentPage] = useState( router.query.page ? parseInt(router.query.page as string, 10) : 1 ); @@ -203,14 +206,24 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) { -
- +
+
+ {isLogined.isLoggedIn && !isAuthor && ( + + )} + +
{isAuthor && (