import React from 'react'; import styled from '@emotion/styled'; import {Panel, PanelBody} from 'sentry/components/panels'; import {space} from 'sentry/styles/space'; type Props = { children: React.ReactNode; button?: JSX.Element; title?: string; }; export default function ChartPanel({title, children, button}: Props) { return (
{title && {title}} {button}
{children}
); } const ChartLabel = styled('p')` ${p => p.theme.text.cardTitle} `; const Header = styled('div')` padding: 0 ${space(1)} 0 0; min-height: 36px; width: 100%; display: flex; align-items: center; justify-content: space-between; `;