import React from 'react' import BLOG from '@/blog.config' import Link from 'next/link' import { RecentComments } from '@waline/client' /** * @see https://waline.js.org/guide/get-started.html * @param {*} props * @returns */ const ExampleRecentComments = (props) => { const [comments, updateComments] = React.useState([]) const [onLoading, changeLoading] = React.useState(true) React.useEffect(() => { RecentComments({ serverURL: BLOG.COMMENT_WALINE_SERVER_URL, count: 5 }).then(({ comments }) => { changeLoading(false) updateComments(comments) }) }, []) return <> {onLoading &&