import { Meta, StoryObj } from '@storybook/react-webpack5'; import { ProfileType, Sentiment, Status } from '../common'; import AvatarWrapper from './AvatarWrapper'; /** * @deprecated use **`AvatarView`** components instead */ export default { component: AvatarWrapper, title: 'Content/AvatarWrapper', tags: ['deprecated'], } satisfies Meta; type Story = StoryObj; export const All: Story = { args: { avatarProps: { outlined: true }, }, render: (args) => { const { avatarProps } = args; const badgeUrl = 'https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg'; return (
No Badges
{' '} Personal
Business
Avatar
Initials
Default
Badges
Personal
Business
Avatar
Initials
Default
); }, }; export const ProfileBrokenImageFallback: Story = { parameters: { chromatic: { delay: 5000, }, }, render: () => { const assetUrl = 'https://test.com/img-wrong-url.test'; return ( <> ); }, };