Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 25 lines 576 B view raw
1import { memo } from "react"; 2import { Card } from "@/components/Shared/UI"; 3import cn from "@/helpers/cn"; 4import PostShimmer from "./PostShimmer"; 5 6interface PostsShimmerProps { 7 hideCard?: boolean; 8} 9 10const PostsShimmer = ({ hideCard = false }: PostsShimmerProps) => { 11 return ( 12 <Card 13 className={cn( 14 { "!border-0": hideCard }, 15 "divide-y divide-gray-200 dark:divide-gray-700" 16 )} 17 > 18 {Array.from({ length: 3 }).map((_, index) => ( 19 <PostShimmer key={index} /> 20 ))} 21 </Card> 22 ); 23}; 24 25export default memo(PostsShimmer);