import React from "react"; interface IEPGComponentProps { channelId: string; } const EPGComponent = ({ channelId }: IEPGComponentProps) => { const [programs, setPrograms] = React.useState([]); React.useEffect(() => { const fetchPrograms = async () => { const res = await fetch( `${process.env.REACT_APP_API_URL}/epg/${channelId}` ); const data = await res.json(); setPrograms(data); }; fetchPrograms().catch(console.error); }, [channelId]); return programs && programs.length ? (
  1. Released on December 2, 2021
  2. Released on December 23, 2021
  3. Released on January 5, 2022
) : null; }; export default EPGComponent;