import { ReactNode, useState } from "react";

import "./Image.css";
import { getCN, usePadding, onLoad } from "../../utils";

function SkeletonImage({
  children,
  className,
  skeleton = true,
  ...props
}: {
  [x: string]: any;
}) {
  return (
    <div {...props} className={getCN([className, skeleton && "MYUI-SkeletonImage"])}>
      {children}
    </div>
  );
}

export default SkeletonImage;
