diff --git a/src/components/Blogss/design1/index.js b/src/components/Blogss/design1/index.js index 4fca609..cba9423 100644 --- a/src/components/Blogss/design1/index.js +++ b/src/components/Blogss/design1/index.js @@ -1,3 +1,5 @@ +import RelativeCircle from "../../RelativeCircle"; + const BlogDesign1 = ({ blogTitle, blogExcerpt, @@ -39,9 +41,11 @@ const BlogDesign1 = ({

- - {commentNum} - +
)} diff --git a/src/components/RelativeCircle/index.js b/src/components/RelativeCircle/index.js new file mode 100644 index 0000000..a488b92 --- /dev/null +++ b/src/components/RelativeCircle/index.js @@ -0,0 +1,18 @@ +import React from "react"; + +const RelativeCircle = ({ commentNum, className }) => { + return ( + + {commentNum} + + ); +}; + +export default RelativeCircle; + +RelativeCircle.defaultProps = { + commentNum: "26", + className: "", +};