diff --git a/src/components/comment/CommentContent.tsx b/src/components/comment/CommentContent.tsx index 4b6db38..1657d89 100644 --- a/src/components/comment/CommentContent.tsx +++ b/src/components/comment/CommentContent.tsx @@ -1,13 +1,26 @@ -import { useTextLimit } from 'hooks/useTextLimit' +import { NoteRender } from 'components/Notes/NoteRender' +import { useTextLimit } from 'hooks' + interface CommentContentProps { content: string } + export const CommentContent = ({ content }: CommentContentProps) => { const { text, isTextOverflowing, isExpanded, toggle } = useTextLimit(content) return ( <> -

{text}

+ {isExpanded && ( +
+

Hide full post

+
+ )} +

+ +

{isTextOverflowing && (

{isExpanded ? 'Hide' : 'View'} full post