import Link from "next/link"; import { Pencil, Trash2, RefreshCw, Tv2, CalendarDays } from "lucide-react"; import { Button } from "@/components/ui/button"; import type { ChannelResponse } from "@/lib/types"; interface ChannelCardProps { channel: ChannelResponse; isGenerating: boolean; onEdit: () => void; onDelete: () => void; onGenerateSchedule: () => void; onViewSchedule: () => void; } export function ChannelCard({ channel, isGenerating, onEdit, onDelete, onGenerateSchedule, onViewSchedule, }: ChannelCardProps) { const blockCount = channel.schedule_config.blocks.length; return (
{/* Top row */}

{channel.name}

{channel.description && (

{channel.description}

)}
{/* Meta */}
{channel.timezone} {blockCount} {blockCount === 1 ? "block" : "blocks"}
{/* Actions */}
); }