import Button from 'react-bootstrap/Button' import { useState } from 'react' import Link from 'next/link' export default function MoreFooter ({ cursor, count, fetchMore, Skeleton, invisible, noMoreText = 'GENESIS' }) { const [loading, setLoading] = useState(false) if (loading) { return
} let Footer if (cursor) { Footer = () => ( ) } else { Footer = () => (
{count === 0 ? 'EMPTY' : noMoreText}
) } return
} export function NavigateFooter ({ cursor, count, fetchMore, href, text, invisible, noMoreText = 'NO MORE' }) { let Footer if (cursor) { Footer = () => ( {text} ) } else { Footer = () => (
{count === 0 ? 'EMPTY' : noMoreText}
) } return
}