DocSpace-client/packages/shared/skeletons/settings/Settings.storage-managemen.tsx
Akmal Isomadinov 58b2bc53a5 Fix after merge
2024-02-21 11:50:44 +05:00

146 lines
4.2 KiB
TypeScript

import React from "react";
import { RectangleSkeleton } from "../rectangle";
import { StyledStorageManagementLoader } from "./Settings.styled";
import type { SettingsStorageManagementSkeletonProps } from "./Settings.types";
export const SettingsStorageManagementSkeleton = ({
className,
style,
...rest
}: SettingsStorageManagementSkeletonProps) => {
const {
title,
borderRadius,
backgroundColor,
foregroundColor,
backgroundOpacity,
foregroundOpacity,
speed,
animate,
} = rest;
return (
<StyledStorageManagementLoader className={className} style={style}>
<RectangleSkeleton
className="storage-loader_title"
title={title}
width="100%"
height="100%"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<div>
<RectangleSkeleton
title={title}
width="170px"
height="22px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleSkeleton
title={title}
width="150px"
height="46px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleSkeleton
title={title}
width="100%"
height="12px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<div className="storage-loader_grid">
<RectangleSkeleton
title={title}
width="100%"
height="20px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleSkeleton
title={title}
width="100%"
height="20px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleSkeleton
title={title}
width="100%"
height="20px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
<RectangleSkeleton
title={title}
width="100%"
height="20px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
</div>
<RectangleSkeleton
title={title}
width="100%"
height="32px"
borderRadius={borderRadius}
backgroundColor={backgroundColor}
foregroundColor={foregroundColor}
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
animate={animate}
/>
</div>
</StyledStorageManagementLoader>
);
};