DocSpace-buildtools/web/ASC.Web.Common/src/components/Loaders/RectangleLoader.js

17 lines
398 B
JavaScript
Raw Normal View History

2020-11-03 12:55:14 +00:00
import React from "react";
import ContentLoader from "react-content-loader";
import { LoaderStyle } from "../../constants/index";
const RectangleLoader = (props) => (
<ContentLoader
speed={2}
width={"100%"}
height={32}
style={LoaderStyle}
{...props}
>
<rect x="0" y="0" width={props.width} height={props.height} />
</ContentLoader>
);
export default RectangleLoader;