portfolio_leptos/src/components/timeline/TimelineElement.tsx

24 lines
525 B
TypeScript
Raw Normal View History

2023-06-03 15:56:14 +02:00
import './TimelineElement.scss'
import react, {ReactNode} from 'react'
2023-06-03 13:19:46 +02:00
import Project from '../../data/Project'
type TimelineElementProps = {
2023-06-03 15:56:14 +02:00
category: string,
children: ReactNode
2023-06-03 13:19:46 +02:00
}
2023-06-03 15:56:14 +02:00
function TimelineElement({ category, children } : TimelineElementProps) {
2023-06-03 13:19:46 +02:00
return (
2023-06-03 15:56:14 +02:00
<li className='timeline-element'>
<div className='timeline-element__category'>
{ category }
</div>
<div className='timeline-element__info'>
{ children }
</div>
2023-06-03 13:19:46 +02:00
</li>
)
}
export default TimelineElement