mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 15:33:09 +02:00
44 lines
764 B
TypeScript
44 lines
764 B
TypeScript
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||
|
import { StoryObj } from '@storybook/vue3';
|
||
|
import { userDetailed } from '../../../.storybook/fakes';
|
||
|
import MkAcct from './MkAcct.vue';
|
||
|
export const Default = {
|
||
|
render(args) {
|
||
|
return {
|
||
|
components: {
|
||
|
MkAcct,
|
||
|
},
|
||
|
setup() {
|
||
|
return {
|
||
|
args,
|
||
|
};
|
||
|
},
|
||
|
computed: {
|
||
|
props() {
|
||
|
return {
|
||
|
...this.args,
|
||
|
};
|
||
|
},
|
||
|
},
|
||
|
template: '<MkAcct v-bind="props" />',
|
||
|
};
|
||
|
},
|
||
|
args: {
|
||
|
user: {
|
||
|
...userDetailed,
|
||
|
host: null,
|
||
|
},
|
||
|
},
|
||
|
parameters: {
|
||
|
layout: 'centered',
|
||
|
},
|
||
|
} satisfies StoryObj<typeof MkAcct>;
|
||
|
export const Detail = {
|
||
|
...Default,
|
||
|
args: {
|
||
|
...Default.args,
|
||
|
user: userDetailed,
|
||
|
detail: true,
|
||
|
},
|
||
|
} satisfies StoryObj<typeof MkAcct>;
|