emptyState.tsx 464 B

123456789101112131415161718192021
  1. import EmptyStateWarning from 'sentry/components/emptyStateWarning';
  2. import Panel from 'sentry/components/panels/panel';
  3. import PanelBody from 'sentry/components/panels/panelBody';
  4. type Props = {
  5. children: React.ReactNode;
  6. };
  7. function EmptyState({children}: Props) {
  8. return (
  9. <Panel>
  10. <PanelBody>
  11. <EmptyStateWarning>
  12. <p>{children}</p>
  13. </EmptyStateWarning>
  14. </PanelBody>
  15. </Panel>
  16. );
  17. }
  18. export default EmptyState;