DocSpace-client/packages/common/components/Loaders/SettingsLoader/SettingsDSConnectLoader.js

191 lines
5.8 KiB
JavaScript

import React from "react";
import { LOADER_STYLE } from "@docspace/shared/constants";
import { RectangleSkeleton } from "@docspace/shared/skeletons";
import { StyledSMTPContent } from "./StyledComponent";
const speed = 2;
const SettingsDSConnect = () => {
const firstComponent = (
<div>
<div>
<RectangleSkeleton
height="22"
width="56"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
<RectangleSkeleton
className="rectangle-loader-2"
height="46"
width="348"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
const secondComponent = (
<div>
<RectangleSkeleton
height="20"
width="101"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
className="rectangle-loader-2"
height="32"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
const thirdComponent = (
<div>
<RectangleSkeleton
height="20"
width="138"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
className="rectangle-loader-2"
height="32"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
const checkboxComponent = (
<div className="rectangle-loader_checkbox">
<RectangleSkeleton
height="16"
width="16"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
height="22"
width="101"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
const secondCheckboxComponent = (
<div className="rectangle-loader_checkbox">
<RectangleSkeleton
height="16"
width="16"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
height="20"
width="70"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
const buttonsComponent = (
<div className="rectangle-loader_buttons">
<RectangleSkeleton
height="32"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
height="32"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
</div>
);
return (
<StyledSMTPContent>
<RectangleSkeleton
className="rectangle-loader_title"
height="22"
width="128"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
<RectangleSkeleton
className="rectangle-loader_description"
height="40"
backgroundColor={LOADER_STYLE.backgroundColor}
foregroundColor={LOADER_STYLE.foregroundColor}
backgroundOpacity={LOADER_STYLE.backgroundOpacity}
foregroundOpacity={LOADER_STYLE.foregroundOpacity}
speed={speed}
animate={true}
/>
{firstComponent}
{firstComponent}
{firstComponent}
{buttonsComponent}
</StyledSMTPContent>
);
};
export default SettingsDSConnect;