2020-11-16 12:24:26 +00:00
|
|
|
import React from "react";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
import StyledRow from "./StyledHistoryRowsLoader";
|
2021-02-25 21:19:45 +00:00
|
|
|
import RectangleLoader from "../RectangleLoader";
|
2020-11-16 12:24:26 +00:00
|
|
|
|
|
|
|
const HistoryRow = ({ id, className, style, ...rest }) => {
|
|
|
|
const {
|
|
|
|
title,
|
|
|
|
borderRadius,
|
|
|
|
backgroundColor,
|
|
|
|
foregroundColor,
|
|
|
|
backgroundOpacity,
|
|
|
|
foregroundOpacity,
|
|
|
|
speed,
|
|
|
|
animate,
|
|
|
|
} = rest;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<StyledRow id={id} className={className} style={style} gap="16px">
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-file-link"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-file-date"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-options"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-comment"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-restore-btn"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
<RectangleLoader
|
|
|
|
className="history-loader-download-btn"
|
|
|
|
title={title}
|
|
|
|
width="100%"
|
|
|
|
height="18"
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
</StyledRow>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
const HistoryRowsLoader = (props) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<HistoryRow {...props} />
|
|
|
|
<HistoryRow {...props} />
|
|
|
|
<HistoryRow {...props} />
|
|
|
|
<HistoryRow {...props} />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
HistoryRowsLoader.propTypes = {
|
|
|
|
id: PropTypes.string,
|
|
|
|
className: PropTypes.string,
|
|
|
|
style: PropTypes.object,
|
|
|
|
};
|
|
|
|
|
|
|
|
HistoryRowsLoader.defaultProps = {
|
|
|
|
id: undefined,
|
|
|
|
className: undefined,
|
|
|
|
style: undefined,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default HistoryRowsLoader;
|