import { ExternalLink, MapPin, Calendar, Users } from "lucide-react" interface ProfileSidebarProps { user: { id: string name: string | null username: string image: string | null bio?: string | null website?: string | null location?: string | null joinedAt?: string | null } isLive?: boolean viewerCount?: number children?: React.ReactNode } export function ProfileSidebar({ user, isLive, viewerCount, children }: ProfileSidebarProps) { const displayName = user.name || user.username const avatarUrl = user.image || `https://api.dicebear.com/7.x/initials/svg?seed=${user.username}` return (
{/* Profile Header */}
{/* Avatar and Live Badge */}
{displayName} {isLive && ( Live )}

{displayName}

@{user.username}

{/* Bio */} {user.bio && (

{user.bio}

)} {/* Meta info */}
{user.location && ( {user.location} )} {user.website && ( {user.website.replace(/^https?:\/\//, "")} )} {user.joinedAt && ( Joined {new Date(user.joinedAt).toLocaleDateString("en-US", { month: "short", year: "numeric" })} )}
{/* Stats */} {isLive && viewerCount !== undefined && (
{viewerCount} watching
)}
{/* Children (Chat, etc.) */}
{children}
) }