import * as React from 'react'; import { Col, Row, Divider, Layout, Card, Typography } from 'antd'; import styled from 'styled-components'; import { TagOutlined } from '@ant-design/icons'; import { RoutedTabs } from './RoutedTabs'; export interface EntityProfileProps { title: string; tags?: React.ReactNode; header: React.ReactNode; tabs?: Array<{ name: string; path: string; content: React.ReactNode; }>; } const FlexSpace = styled.div` display: flex; justify-content: space-between; `; const TagsTitle = styled(Typography.Title)` font-size: 18px; `; const TagCard = styled(Card)` margin-top: 24px; font-size: 18px; width: 450px; height: 100%; `; const TagIcon = styled(TagOutlined)` padding-right: 6px; `; 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}

{header}
Tags {tags}
); }; EntityProfile.defaultProps = defaultProps;