import styled from '@emotion/styled'; import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {Panel, PanelHeader} from 'app/components/panels'; import {IconTelescope, IconUser} from 'app/icons'; import Button from 'app/components/button'; import EmptyMessage from 'app/views/settings/components/emptyMessage'; import space from 'app/styles/space'; export default { title: 'UI/EmptyMessage', }; export const Default = withInfo('Super Generic')(() => (
Nothing to see here
)); Default.story = { name: 'default', }; export const InPanel = withInfo('Put this in a panel for maximum effect')(() => ( Audit Log No critical actions taken in this period )); InPanel.story = { name: 'in panel', }; export const InPanelWithIcon = withInfo('Put this in a panel for maximum effect')(() => ( Members } size="large"> Sentry is better with friends )); InPanelWithIcon.story = { name: 'in panel with icon', }; export const InPanelWithIconAndAction = withInfo( 'Put this in a panel for maximum effect' )(() => ( Members } action={} > Sentry is better with friends )); InPanelWithIconAndAction.story = { name: 'in panel with icon and action', }; export const InPanelWithTitleAndDescription = withInfo( 'Put this in a panel for maximum effect' )(() => ( Members )); InPanelWithTitleAndDescription.story = { name: 'in panel with title and description', }; export const InPanelWithEverything = withInfo('Put this in a panel for maximum effect')( () => ( Members } title="Sentry is better with friends!" description="When you use sentry with friends, you'll find your world of possibilities expands!" action={
} />
) ); InPanelWithEverything.story = { name: 'in panel with everything', }; export const InOnboardingMissingFunctionalityPanel = withInfo( 'Put this in a panel for maximum effect' )(() => ( } title="You're missing out on crucial functionality!" description="Enable this feature now to get the most out of Sentry. What are you waiting for? Do it!" action={
} />
)); InOnboardingMissingFunctionalityPanel.story = { name: 'in onboarding/missing functionality panel', }; const Wrapper = styled('div')` display: flex; justify-content: center; `; const ButtonWrapper = styled('div')` margin-right: ${space(1)}; `;