import { css, cx } from '@emotion/css'; import { GrafanaTheme2 } from '@grafana/data'; import { LinkButton, useStyles2 } from '@grafana/ui'; import React, { FC } from 'react'; interface Props { title: string; description: string; addButtonLabel: string; addButtonTo: string; className?: string; } export const ReceiversSection: FC = ({ className, title, description, addButtonLabel, addButtonTo, children, }) => { const styles = useStyles2(getStyles); return ( <>

{title}

{description}

{addButtonLabel}
{children} ); }; const getStyles = (theme: GrafanaTheme2) => ({ heading: css` display: flex; justify-content: space-between; `, description: css` color: ${theme.colors.text.secondary}; `, });