DocSpace-buildtools/packages/common/components/Loaders/TextLoader.js

22 lines
585 B
JavaScript
Raw Normal View History

2020-09-28 13:20:16 +00:00
import React from "react";
import ContentLoader from "react-content-loader";
import { LoaderStyle } from "../../constants";
2020-09-28 13:20:16 +00:00
const TextLoader = (props) => (
2020-09-28 13:20:16 +00:00
<ContentLoader
speed={2}
width={174}
height={23}
viewBox="0 0 174 23"
2020-11-09 19:56:21 +00:00
backgroundColor={LoaderStyle.backgroundColor}
foregroundColor={LoaderStyle.foregroundColor}
backgroundOpacity={LoaderStyle.backgroundOpacity}
foregroundOpacity={LoaderStyle.foregroundOpacity}
2020-09-28 13:20:16 +00:00
{...props}
>
<rect x="0" y="0" rx="0" ry="0" width="174" height="23" />
</ContentLoader>
);
export default TextLoader;