import * as React from 'react'; import { Col, Row, Tag, Divider, Layout } from 'antd'; import { RoutedTabs } from './RoutedTabs'; interface Props { title: string; tags?: Array; body: React.ReactNode; tabs?: Array<{ name: string; path: string; content: React.ReactNode; }>; } const defaultProps = { tags: [], tabs: [], }; /** * A generic container view for presenting Entity details. */ export const GenericEntityDetails = ({ title: _title, tags: _tags, body: _body, tabs: _tabs }: Props) => { const defaultTabPath = _tabs && _tabs?.length > 0 ? _tabs[0].path : ''; /* eslint-disable spaced-comment */ return (

{_title}

{_tags && _tags.map((t) => {t})}
{_body}
); }; GenericEntityDetails.defaultProps = defaultProps;