import React from 'react'
import { ClasicItem } from './clasic/ClasicItem'

const itemStyles = {
  standard: ClasicItem
}

interface Props {
  style: string,
  anniversary: DataEmployee
}

export const AnniversaryItem = ({ style, anniversary }: Props) => {

  // let StyledItem = itemStyles.hasOwnProperty(this.props.style) ? itemStyles['circle'] : itemStyles.standard
  let StyledItem = itemStyles.hasOwnProperty(style) ? itemStyles['standard'] : itemStyles.standard

  return <StyledItem anniversary={anniversary} />

}


