/* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable import/no-duplicates */ import { StoryObj } from '@storybook/vue3'; import MkAvatar from './MkAvatar.vue'; export const Default = { render(args) { return { components: { MkAvatar, }, setup() { return { args, }; }, computed: { props() { return { ...args, }; }, }, template: '', }; }, args: { size: 48, user: { avatarUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/about-icon.png?raw=true', }, }, decorators: [ (Story, context) => ({ // eslint-disable-next-line quotes template: `
`, }), ], parameters: { layout: 'centered', }, } satisfies StoryObj; export const ProfilePage = { ...Default, args: { ...Default.args, size: 120, indicator: true, user: { ...Default.args.user, onlineStatus: 'unknown', }, }, }; export const ProfilePageCat = { ...ProfilePage, args: { ...ProfilePage.args, user: { ...ProfilePage.args.user, isCat: true, }, }, };