import {Fragment} from 'react'; import styled from '@emotion/styled'; import IdBadge from 'sentry/components/idBadge'; // TODO(scttcper): Handle dark mode 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'; export default { title: 'Components/Badges/ID Badge', components: IdBadge, }; export const All = () => { const user = { name: 'Chrissy', email: 'chris.clark@sentry.io', }; const team = { slug: 'team-slug', }; const project = { slug: 'project-slug', }; const organization = { slug: 'organization-slug', }; const member = { name: 'Pending Member', email: 'member@example.org', }; return (
User Badge
Member Badge
Team Badge
Project Badge
Organization Badge
); }; All.storyName = 'ID Badge'; All.parameters = { docs: { description: { story: 'These are identification badges for certain models in Sentry: Organization, Project, Team, and User.', }, }, };