import React, { useCallback, useState } from 'react'; import { Blurhash } from './blurhash'; import classNames from 'classnames'; type Props = { src: string; srcSet?: string; blurhash?: string; className?: string; }; export const ServerHeroImage: React.FC = ({ src, srcSet, blurhash, className, }) => { const [loaded, setLoaded] = useState(false); const handleLoad = useCallback(() => { setLoaded(true); }, [setLoaded]); return (
{blurhash && }
); };