"use client"; import { ArrowLeft, Clock, Hash, Sparkles } from "lucide-react"; import { DetailStat, ErrorState, LoadingSkeleton } from "@/components/shared"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { useChannelDetail } from "@/hooks"; export function ChannelDetailSection({ channelId, onBack, }: { channelId: string; onBack: () => void; }) { const { data: channel, isLoading } = useChannelDetail(channelId); if (isLoading) return ; if (!channel) return ; return (

{channel.channel_name ?? channel.channel_id.slice(0, 8)}

{channel.channel_id}

{channel.culture_summary && (

Channel Culture

“{channel.culture_summary}”

)} {channel.recent_messages.length > 0 && (

Recent Messages

{channel.recent_messages.slice(0, 5).map((msg) => (
{msg.username} {new Date(msg.created_at).toLocaleString()}

{msg.content}

))}
)}
); }