// @flow import React from 'react'; import classnames from 'classnames'; import type { Node } from 'react'; import useLazyLoading from 'effects/use-lazy-loading'; type Props = { thumb: string, children?: Node, className?: string, }; const Thumb = (props: Props) => { const { thumb, children, className } = props; const thumbnailRef = React.useRef(null); useLazyLoading(thumbnailRef); return (
{children}
); }; export default Thumb;