DocSpace-buildtools/packages/asc-web-common/components/Loaders/TreeNodeLoader/TreeNodeLoader.js

45 lines
1016 B
JavaScript

import React from "react";
import RectangleLoader from "../RectangleLoader";
import CircleLoader from "../CircleLoader";
const TreeNodeLoader = ({
title,
borderRadius,
backgroundColor,
foregroundColor,
backgroundOpacity,
foregroundOpacity,
speed,
animate,
}) => {
return (
<>
<CircleLoader
title={title}
height="32"
radius="3"
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleLoader
title={title}
width="100%"
height="24"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
</>
);
};
export default TreeNodeLoader;