/* * SPDX-FileCopyrightText: syuilo and misskey-project * SPDX-License-Identifier: AGPL-3.0-only */ import { StoryObj } from '@storybook/vue3'; import MkFlashPreview from './MkFlashPreview.vue'; import { flash } from './../../.storybook/fakes.js'; export const Public = { render(args) { return { components: { MkFlashPreview, }, setup() { return { args, }; }, computed: { props() { return { ...this.args, }; }, }, template: '', }; }, args: { flash: { ...flash(), visibility: 'public', }, }, parameters: { layout: 'fullscreen', }, decorators: [ () => ({ template: '
', }), ], } satisfies StoryObj; export const Private = { ...Public, args: { flash: { ...flash(), visibility: 'private', }, }, } satisfies StoryObj;