"use client";

// ============================================================================
// Target Channel Detail Page
// ============================================================================

import React, { useEffect } from "react";
import { useRouter } from "next/navigation";
import { use } from "react";

interface PageProps {
  params: Promise<{ id: string }>;
}

export default function ChannelDetailPage({ params }: PageProps) {
  const router = useRouter();
  const resolvedParams = use(params);

  useEffect(() => {
    // Redirect back to channels list
    // Detail page functionality not yet implemented in backend API
    router.push("/channels");
  }, [router, resolvedParams.id]);

  return null;
}
