Begin migrate to leptos
This commit is contained in:
parent
1060e12513
commit
79daad993e
45 changed files with 3202 additions and 1975 deletions
21
src_old/components/timeline/TimelineCardSummary.tsx
Normal file
21
src_old/components/timeline/TimelineCardSummary.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue