import { Space, Title } from '../index'; import { ReactElement } from 'react'; export type Section = { key?: string; title: string; content: ReactElement; }; export interface FeedProps { sections: Section[]; ref?: HTMLDivElement; className?: string; } const Feed = ({ sections, className }: FeedProps) => ( {sections.map(({ title, key = title, content }) => (
{title} {content}
))}
); export default Feed;