import React from 'react'

import { SegmentEventType } from '../../types/event'

import { IconImg } from './style'


export type EventIconProps = {
  type: SegmentEventType
  size?: 'sm'
  decoration?: 'error'
}

export const EventIcon = ({ type, size, decoration }: EventIconProps) => (
  <IconImg size={size} eventType={type} errorIndicator={decoration === 'error'} />
)
