import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import styled from '@emotion/styled'; import IdBadge from 'app/components/idBadge'; const Item = styled('div')` padding: 8px; background-color: white; border: 1px dashed #fcfcfc; margin-bottom: 30px; `; Item.displayName = 'Item'; const Header = styled('h2')` font-size: 18px; margin-bottom: 4px; `; Header.displayName = 'Header'; storiesOf('UI|IdBadge', module).add( 'all', withInfo({ text: 'These are identification badges for certain models in Sentry: Organization, Project, Team, and User.', propTablesExclude: [Item, Header, React.Fragment], })(() => { const user = { name: 'Chrissy', email: 'chris.clark@sentry.io', }; const team = { slug: 'team-slug', }; const project = { slug: 'project-slug', }; const organization = { slug: 'organization-slug', }; return (
User Badge
Team Badge
Project Badge
Organization Badge
); }) );