"use client"; import Image from "next/image"; import type React from "react"; import type { ChannelDataProp } from "./SubscriberTable"; interface ChannelRowProps { channel: ChannelDataProp; index: number; } const ChannelRow: React.FC = ({ channel, index }) => ( (window.location.href = "/stats/" + channel.channel_name)} > {index + 1} {channel.channel_name} {channel.channel_name} {channel.sub_org} {channel.video_count} {Number(channel.views).toLocaleString()} {Number(channel.subscribers).toLocaleString()} {channel.day_diff > 0 ? `+${Number(channel.day_diff).toLocaleString()}` : Number(channel.day_diff).toLocaleString()} ); export default ChannelRow;