import React from 'react'
import PropTypes from 'prop-types'
import { CircleGroup, SkeletonHeaderCircle, SkeletonHeaderContainer, SkeletonHeaderLine, SkeletonHeaderRightLine, SkeletonRowGroup } from './SkeletonHeader.styled'

const SkeletonHeader = (props) => {
  return (
    <SkeletonHeaderContainer skeleton={props.skeleton}>
        <SkeletonHeaderLine animationStage={props.animationStage} />
        <SkeletonRowGroup>
            <CircleGroup>
                <SkeletonHeaderCircle animationStage={props.animationStage} />
                <SkeletonHeaderCircle animationStage={props.animationStage} />
            </CircleGroup>
            <SkeletonHeaderRightLine animationStage={props.animationStage} />
        </SkeletonRowGroup>
    </SkeletonHeaderContainer>
  )
}

SkeletonHeader.propTypes = {
    skeleton: PropTypes.bool,
    animationStage: PropTypes.number,
}

export default SkeletonHeader