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

{_title}

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