interface ChannelInfoProps { channelNumber: number; channelName: string; showTitle: string; showStartTime: string; // "HH:MM" showEndTime: string; // "HH:MM" /** Progress through the current show, 0–100 */ progress: number; description?: string; } export function ChannelInfo({ channelNumber, channelName, showTitle, showStartTime, showEndTime, progress, description, }: ChannelInfoProps) { const clampedProgress = Math.min(100, Math.max(0, progress)); return (
{/* Channel badge */}
{channelNumber} {channelName}
{/* Show title */}

{showTitle}

{/* Description */} {description && (

{description}

)} {/* Progress bar */}
{showStartTime} {showEndTime}
); } export type { ChannelInfoProps };