Skip to content

Commit

Permalink
feat: #50 - NotificationComment 컴포넌트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Nov 7, 2023
1 parent 72470e7 commit bb2c128
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/components/common/Notification/NotificationComment.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { NotificationSpaceProps } from './NotificationSpace'
import { NOTIFICATION_MSG } from './constants'
import useNotification from './hooks/useNotification'

const NotificationComment = ({
notificationId,
spaceId,
isRead,
spaceName,
}: NotificationSpaceProps) => {
const { handleClickComment } = useNotification()
return (
<>
<span
onClick={() =>
handleClickComment({
notificationId,
spaceId,
isRead,
})
}
className="cursor-pointer font-bold">
{NOTIFICATION_MSG.COMMENT}
</span>
{NOTIFICATION_MSG.COMMENT_LEAVE}
</>
)
}

export default NotificationComment

0 comments on commit bb2c128

Please sign in to comment.