| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import React from 'react';
- import { Skeleton } from './Skeleton';
- import styles from './PageComment.module.scss';
- import CommentStyles from './PageComment/Comment.module.scss';
- import CommentEditorStyles from './PageComment/CommentEditor.module.scss';
- type PageCommentSkeletonProps = {
- commentTitleClasses?: string,
- roundedPill?: boolean,
- }
- export const PageCommentSkeleton = (props: PageCommentSkeletonProps): JSX.Element => {
- const {
- commentTitleClasses,
- } = props;
- return (
- <>
- {/* TODO: Check the comment.html CSS */}
- <div className={`${styles['page-comment-styles']} page-comments-row comment-list`}>
- <div className="container-lg">
- <div className="page-comments">
- <h2 className={commentTitleClasses}><i className="icon-fw icon-bubbles"></i>Comments</h2>
- <div className="page-comments-list" id="page-comments-list">
- <div className={`${CommentStyles['comment-styles']} page-comment-thread pb-5 page-comment-thread-no-replies`}>
- <div className='page-comment flex-column'>
- <div className='page-commnet-writer'>
- <Skeleton additionalClass='rounded-circle picture' roundedPill />
- </div>
- <Skeleton additionalClass="page-comment-comment-body-skeleton grw-skeleton" />
- </div>
- <div className='page-comment flex-column ml-4 ml-sm-5 mr-3'>
- <div className='page-commnet-writer mt-3'>
- <Skeleton additionalClass='rounded-circle picture' roundedPill />
- </div>
- <Skeleton additionalClass="page-comment-comment-body-skeleton grw-skeleton mt-3" />
- </div>
- <div className="text-right">
- <Skeleton additionalClass="page-comment-button-skeleton btn btn-outline-secondary btn-sm grw-skeleton" />
- </div>
- </div>
- </div>
- <div className={`${CommentEditorStyles['comment-editor-styles']} form page-comment-form`}>
- <div className='comment-form'>
- <div className='comment-form-user'>
- <Skeleton additionalClass='rounded-circle picture' roundedPill />
- </div>
- <Skeleton additionalClass="page-comment-commenteditorlazyrenderer-body-skeleton grw-skeleton" />
- </div>
- </div>
- </div>
- </div>
- </div>
- </>
- );
- };
|