import { CameraIcon } from '@blocksuite/icons/rc'; import type { Meta, StoryFn } from '@storybook/react'; import type { AvatarProps } from './avatar'; import { Avatar } from './avatar'; export default { title: 'UI/Avatar', component: Avatar, argTypes: { onClick: () => console.log('Click button'), }, } satisfies Meta; const Template: StoryFn = args => ; export const DefaultAvatar: StoryFn = Template.bind(undefined); DefaultAvatar.args = { name: 'AFFiNE', url: 'https://affine.pro/favicon-96.png', size: 50, }; export const Fallback: StoryFn = Template.bind(undefined); Fallback.args = { name: 'AFFiNE', size: 50, }; export const ColorfulFallback: StoryFn = Template.bind(undefined); ColorfulFallback.args = { size: 50, colorfulFallback: true, name: 'blocksuite', }; export const ColorfulFallbackWithDifferentSize: StoryFn = args => ( <> ); export const WithHover: StoryFn = Template.bind(undefined); WithHover.args = { size: 50, colorfulFallback: true, name: 'With Hover', hoverIcon: , }; export const WithRemove: StoryFn = Template.bind(undefined); WithRemove.args = { size: 50, colorfulFallback: true, name: 'With Hover', hoverIcon: , removeTooltipOptions: { content: 'This is remove tooltip' }, avatarTooltipOptions: { content: 'This is avatar tooltip' }, onRemove: e => { console.log('on remove', e); }, }; const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAKsWlDQ1BJQ0MgUHJvZmlsZQAASImVlwdQU+kWgP9700NCC0RASuhNkE4AKSG00KWDjZAECCXEFAQsWFhcwbWgIgLKiq6CKNgoYseChUVQsesGWQTUdbEgKirvAkPY3TfvvXln5uR8c3L+U+7cf+ZcAMgabKEwA1YGIFMgEUX4e9Pi4hNouEGAAVRAAPZAmc0RCxnh4cEAkWn7d/l4D0AT9o7VRK5///+/igqXJ+YAAIUjnMQVczIRPonoB45QJAEAVYP4DZdJhBPcgbCaCGkQYdkEp0zxhwlOmmQ0fjImKoKJsDYAeBKbLUoBgGSG+GnZnBQkDykAYRsBly9AOAdhj8zMLC7CLQibITFChCfy05P+kiflbzmT5DnZ7BQ5T80yKXgfvliYwc79Px/H/5bMDOl0DRN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