import type { Meta, StoryObj } from '@storybook/vue3-vite' import ButtonStyled from '../../components/base/ButtonStyled.vue' import EmptyState from '../../components/base/EmptyState.vue' const meta = { title: 'Base/EmptyState', component: EmptyState, argTypes: { type: { control: 'select', options: [ undefined, 'done', 'empty', 'empty-inbox', 'error', 'no-connection', 'no-credit-card', 'no-documents', 'no-gps', 'no-images', 'no-items-cart', 'no-messages', 'no-search-result', 'no-tasks', ], }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { type: 'empty-inbox', heading: 'No content installed', description: 'Browse or upload mods to get started', }, } export const WithActions: StoryObj = { render: () => ({ components: { EmptyState, ButtonStyled }, template: /*html*/ ` `, }), } export const TextOnly: Story = { args: { heading: 'No transactions', description: 'Your transaction history will appear here.', }, } export const AllIllustrations: StoryObj = { render: () => ({ components: { EmptyState }, template: /*html*/ `
`, }), }