import { ReactNode } from 'react'; import { Avatar } from '../Avatar'; import { Card } from '../Card'; import { Container, AvatarContainer, Line, Content } from './styles'; type TimelineItemProps = { name: string; children: ReactNode; withLine?: boolean; }; export function TimelineItem({ name, children, withLine, }: TimelineItemProps): JSX.Element { return ( {withLine && } {children} ); }