DocSpace-client/packages/common/components/Loaders/TextLoader.js
2023-11-10 11:20:02 +04:00

22 lines
606 B
JavaScript

import React from "react";
import ContentLoader from "react-content-loader";
import { LoaderStyle } from "@docspace/components/utils/constants";
const TextLoader = (props) => (
<ContentLoader
speed={2}
width={174}
height={23}
viewBox="0 0 174 23"
backgroundColor={LoaderStyle.backgroundColor}
foregroundColor={LoaderStyle.foregroundColor}
backgroundOpacity={LoaderStyle.backgroundOpacity}
foregroundOpacity={LoaderStyle.foregroundOpacity}
{...props}
>
<rect x="0" y="0" rx="0" ry="0" width="174" height="23" />
</ContentLoader>
);
export default TextLoader;