import styled from '@emotion/styled'; import {SectionHeading} from 'sentry/components/charts/styles'; import FeatureBadge from 'sentry/components/featureBadge'; import QuestionTooltip from 'sentry/components/questionTooltip'; import space from 'sentry/styles/space'; type MetaDataProps = { bodyText: React.ReactNode; headingText: string; subtext: React.ReactNode; tooltipText: string; badge?: 'alpha' | 'beta' | 'new'; }; export function MetaData({ headingText, tooltipText, bodyText, subtext, badge, }: MetaDataProps) { return ( {headingText} {badge && } {bodyText} {subtext} ); } const HeaderInfo = styled('div')` height: 78px; `; const StyledSectionHeading = styled(SectionHeading)` margin: 0; `; const SectionBody = styled('div')` font-size: ${p => p.theme.fontSizeExtraLarge}; padding: ${space(0.5)} 0; max-height: 32px; `; const StyledFeatureBadge = styled(FeatureBadge)` margin: 0; `; export const SectionSubtext = styled('div')<{type?: 'error' | 'default'}>` color: ${p => (p.type === 'error' ? p.theme.error : p.theme.subText)}; font-size: ${p => p.theme.fontSizeMedium}; `;