diff --git a/components/blog/Comments.js b/components/blog/Comments.js index 5d95653..767a6ee 100644 --- a/components/blog/Comments.js +++ b/components/blog/Comments.js @@ -1,7 +1,17 @@ +import { useEffect, useState } from 'react'; import { ReactCusdis } from 'react-cusdis'; -const Disqus = ({ pageUrl, pageId, pageTitle }) => { +const Comments = ({ pageUrl, pageId, pageTitle }) => { const appId = process.env.NEXT_PUBLIC_CUSDIS_APPID; + const [show, setShow] = useState(false); + + useEffect(() => { + setShow(true); + }, []); + + if (!show) { + return null; + } return ( { ); }; -export default Disqus; +export default Comments;