/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import * as React from "react"; // import { cx } from 'emotion'; import * as Image from "react-shimmer"; interface IProps { src: string; alt: string; className?: string; width?: number; height?: number; type?: string; delay?: number; duration?: number; } class ImageAtom extends React.PureComponent { public render() { const { src, alt, className, width, height, delay, duration, } = this.props; return (
{alt} delay={delay} duration={duration} // Customize the animation duration (s). />
); } } export { ImageAtom };