import type { UpcomingStory } from "../api/workflow"; interface UpcomingPanelProps { stories: UpcomingStory[]; isLoading: boolean; error: string | null; lastRefresh: Date | null; onRefresh: () => void; } const formatTimestamp = (value: Date | null): string => { if (!value) return "—"; return value.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit", }); }; export function UpcomingPanel({ stories, isLoading, error, lastRefresh, onRefresh, }: UpcomingPanelProps) { return (