import react, {ReactNode} from 'react'

type TimelineCardSummaryProps = {
  children: ReactNode,
  tags?: ReactNode[]
}

function TimelineCardSummary({ children, tags } : TimelineCardSummaryProps) {
  return (
    <>
      {children}
      {
        tags && <div className='flex flex-wrap gap-2 mt-2'>
          { tags }
        </div>
      }
    </>
  )
}

export default TimelineCardSummary