import { Link } from 'react-router-dom'; import Routes from '../configuration/routes/RouteList'; import updateChannelSubscription from '../api/actions/updateChannelSubscription'; import FormattedNumber from './FormattedNumber'; import Button from './Button'; import ChannelIcon from './ChannelIcon'; type ChannelOverviewProps = { channelId: string; channelname: string; channelSubs: number; channelSubscribed: boolean; channelThumbUrl: string; showSubscribeButton?: boolean; isUserAdmin?: boolean; setRefresh: (status: boolean) => void; }; const ChannelOverview = ({ channelId, channelSubs, channelSubscribed, channelname, channelThumbUrl, showSubscribeButton = false, isUserAdmin, setRefresh, }: ChannelOverviewProps) => { return ( <>