import React from 'react' import withDefaults from '../utils/with-defaults' import useTheme from '../styles/use-theme' interface Props { opacity: number } const defaultProps = { opacity: 0.5, } export type ImageSkeletonProps = Props & typeof defaultProps const ImageSkeleton: React.FC = React.memo(({ opacity, ...props }) => { const theme = useTheme() return (
) }) export default withDefaults(ImageSkeleton, defaultProps)