import React, { Suspense } from 'react'; import { Skeleton } from 'antd'; import { InView } from 'react-intersection-observer'; import type { IntersectionObserverProps } from 'react-intersection-observer'; type InViewSuspenseProps = Pick & { fallback?: React.ReactNode; }; const InViewSuspense: React.FC> = ({ children, fallback = , delay = 200, }) => ( {({ inView, ref }) => (
{inView ? children : }
)}
); export default InViewSuspense;