mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Uses react-intersection-observer to load more comments when the last of the previously loaded comments is in the viewport.
20 lines
675 B
TypeScript
20 lines
675 B
TypeScript
const CommentLoadingCardBody = () => {
|
|
return (
|
|
<div className="animate card-body h-52 fade-in-10">
|
|
<div className="flex animate-pulse space-x-4 slide-in-from-top">
|
|
<div className="flex-1 space-y-4 py-1">
|
|
<div className="h-4 w-3/4 rounded bg-base-100" />
|
|
<div className="space-y-2">
|
|
<div className="h-4 rounded bg-base-100" />
|
|
<div className="h-4 w-11/12 rounded bg-base-100" />
|
|
<div className="h-4 w-10/12 rounded bg-base-100" />
|
|
<div className="h-4 w-11/12 rounded bg-base-100" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default CommentLoadingCardBody;
|