'use client'; import { useState, useEffect, useRef, useCallback } from 'react'; import Link from 'next/link'; import { useParams, useRouter } from 'next/navigation'; import { ArrowLeftIcon, CalendarIcon } from '@/components/Icons'; import { PostCard } from '@/components/PostCard'; import { User, Post } from '@/lib/types'; import AutoTextarea from '@/components/AutoTextarea'; import { Rocket, MoreHorizontal } from 'lucide-react'; import { formatFullHandle } from '@/lib/utils/handle'; import { Bot } from 'lucide-react'; interface BotOwner { id: string; handle: string; displayName?: string | null; avatarUrl?: string | null; } interface UserSummary { id: string; handle: string; displayName?: string | null; bio?: string | null; avatarUrl?: string | null; isBot?: boolean; } // Strip HTML tags from a string const stripHtml = (html: string | null | undefined): string | null => { if (!html) return null; return html.replace(/<[^>]*>/g, '').trim() || null; }; function UserRow({ user }: { user: UserSummary }) { return (
{user.postsCount} posts
{formatFullHandle(user.handle)}
{user.bio && ({user.bio}
)}Loading...
No posts yet
Loading...
No replies yet
Loading...
No liked posts yet
No followers yet
Not following anyone yet