44 lines
1000 B
JavaScript
44 lines
1000 B
JavaScript
|
import React from "react";
|
||
|
import RectangleLoader from "../RectangleLoader";
|
||
|
import CircleLoader from "../CircleLoader";
|
||
|
|
||
|
const TreeNodeLoader = ({
|
||
|
title,
|
||
|
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;
|