import * as React from 'react'; import { Col, Row, Tag, Divider, Layout } from 'antd'; import { RoutedTabs } from './RoutedTabs'; export interface EntityProfileProps { title: string; tags?: Array; header: 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, tags, header, tabs }: EntityProfileProps) => { const defaultTabPath = tabs && tabs?.length > 0 ? tabs[0].path : ''; /* eslint-disable spaced-comment */ return (

{title}

{tags && tags.map((t) => {t})}
{header}
); }; EntityProfile.defaultProps = defaultProps;