mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 10:04:00 +00:00
23 lines
520 B
TypeScript
23 lines
520 B
TypeScript
import { FC } from 'react';
|
|
import Spinner from '../ui/Spinner';
|
|
import CommentLoadingCardBody from './CommentLoadingCardBody';
|
|
|
|
interface CommentLoadingComponentProps {
|
|
length: number;
|
|
}
|
|
|
|
const CommentLoadingComponent: FC<CommentLoadingComponentProps> = ({ length }) => {
|
|
return (
|
|
<>
|
|
{Array.from({ length }).map((_, i) => (
|
|
<CommentLoadingCardBody key={i} />
|
|
))}
|
|
<div className="p-1">
|
|
<Spinner size="sm" />
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default CommentLoadingComponent;
|