portfolio_leptos/src_old/components/timeline/TimelineCardSummary.tsx

21 lines
No EOL
393 B
TypeScript

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