2021-09-07 09:29:55 +00:00
|
|
|
import React from "react";
|
|
|
|
import PropTypes from "prop-types";
|
|
|
|
import StyledContainer from "./StyledMainButton";
|
|
|
|
import RectangleLoader from "../RectangleLoader";
|
|
|
|
|
2022-03-15 14:41:37 +00:00
|
|
|
const ArticleButtonLoader = ({ id, className, style, ...rest }) => {
|
2021-09-07 09:29:55 +00:00
|
|
|
const {
|
|
|
|
title,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
borderRadius,
|
|
|
|
backgroundColor,
|
|
|
|
foregroundColor,
|
|
|
|
backgroundOpacity,
|
|
|
|
foregroundOpacity,
|
|
|
|
speed,
|
|
|
|
animate,
|
|
|
|
} = rest;
|
|
|
|
return (
|
|
|
|
<StyledContainer id={id} className={className} style={style}>
|
|
|
|
<RectangleLoader
|
|
|
|
title={title}
|
|
|
|
width={width}
|
|
|
|
height={height}
|
|
|
|
borderRadius={borderRadius}
|
|
|
|
backgroundColor={backgroundColor}
|
|
|
|
foregroundColor={foregroundColor}
|
|
|
|
backgroundOpacity={backgroundOpacity}
|
|
|
|
foregroundOpacity={foregroundOpacity}
|
|
|
|
speed={speed}
|
|
|
|
animate={animate}
|
|
|
|
/>
|
|
|
|
</StyledContainer>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2022-03-15 14:41:37 +00:00
|
|
|
ArticleButtonLoader.propTypes = {
|
2021-09-07 09:29:55 +00:00
|
|
|
id: PropTypes.string,
|
|
|
|
className: PropTypes.string,
|
|
|
|
style: PropTypes.object,
|
|
|
|
};
|
|
|
|
|
2022-03-15 14:41:37 +00:00
|
|
|
ArticleButtonLoader.defaultProps = {
|
2021-09-07 09:29:55 +00:00
|
|
|
id: undefined,
|
|
|
|
className: undefined,
|
|
|
|
style: undefined,
|
|
|
|
};
|
|
|
|
|
2022-03-15 14:41:37 +00:00
|
|
|
export default ArticleButtonLoader;
|