import { Col, Pagination, Row } from 'antd'; import { Follower } from '../../../interfaces/follower'; import SingleFollower from './Follower'; import s from './Followers.module.scss'; interface Props { total: number; followers: Follower[]; } export default function FollowerCollection(props: Props) { const ITEMS_PER_PAGE = 24; const { followers, total } = props; const pages = Math.ceil(total / ITEMS_PER_PAGE); const noFollowers = (
A message explaining how to follow goes here since there are no followers.
); if (followers.length === 0) { return noFollowers; } return (
{followers.map(follower => ( ))}
); }