2023-06-03 18:26:08 +02:00
|
|
|
import react, {ReactNode} from 'react'
|
|
|
|
|
|
|
|
type TimelineCardSummaryProps = {
|
2023-06-04 00:51:03 +02:00
|
|
|
children: ReactNode,
|
|
|
|
tags?: ReactNode[]
|
2023-06-03 18:26:08 +02:00
|
|
|
}
|
|
|
|
|
2023-06-04 00:51:03 +02:00
|
|
|
function TimelineCardSummary({ children, tags } : TimelineCardSummaryProps) {
|
2023-06-03 18:26:08 +02:00
|
|
|
return (
|
2023-06-04 00:51:03 +02:00
|
|
|
<>
|
|
|
|
{children}
|
|
|
|
{
|
|
|
|
tags && <div className='flex flex-wrap gap-2 mt-2'>
|
|
|
|
{ tags }
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</>
|
2023-06-03 18:26:08 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default TimelineCardSummary
|