import { Meta } from '@storybook/react-webpack5'; import AvatarComponent, { AvatarType } from '../../Avatar'; import { Size, Theme } from '../../../common'; import Badge from '..'; /** * @deprecated use **``** components instead */ const meta: Meta = { component: Badge, title: 'Content/Badge', tags: ['deprecated'], }; export default meta; /** * Used for showing multiple components within a Canvas. * @decorator */ const withComponentGrid = (maxWidth = 'auto') => (Story: any) => (
); const ExampleBadgeStyle = { background: 'var(--color-content-positive)', width: '100%', height: '100%', color: 'white', fontSize: '10px', display: 'flex', justifyContent: 'center', alignItems: 'center', }; export const LegacyAvatarWithBadge = { decorators: [withComponentGrid()], parameters: { docs: { source: { type: 'dynamic' }, }, }, render: () => { return ( <> B} border={Theme.LIGHT} size={Size.LARGE} > AA B} border={Theme.LIGHT} size={Size.MEDIUM} > AA B} border={Theme.LIGHT} size={Size.SMALL} > AA ); }, };