'use client' import { Button } from '@thedaviddias/design-system/button' import { Github, Heart, Mail, Users } from 'lucide-react' import Link from 'next/link' import { Card } from '@/components/ui/card' interface CommunityAnonymousPanelProps { favoritesCount: number totalMembers?: number } /** * Panel shown to anonymous users with favorites count and community join CTA */ export function CommunityAnonymousPanel({ favoritesCount, totalMembers }: CommunityAnonymousPanelProps) { return ( <> {/* Anonymous user encouragement */} Your Local Favorites Saved on this device {favoritesCount} Projects favorited Sign In to Save Create account to sync your favorites {/* Community invitation */} Join Our Community Connect with {totalMembers || '2,000+'} developers building AI-ready documentation Join with GitHub { e.preventDefault() window.open('https://substack.com', '_blank') }} > Newsletter > ) }
Saved on this device
{favoritesCount}
Projects favorited
Create account to sync your favorites
Connect with {totalMembers || '2,000+'} developers building AI-ready documentation