// Copyright (c) 2026 Sidero Labs, Inc.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { fn } from 'storybook/test'

import ConfirmModal from './ConfirmModal.vue'

const meta: Meta<typeof ConfirmModal> = {
  component: ConfirmModal,
  args: {
    open: true,
    'onUpdate:open': fn(),
    onConfirm: fn(),
  },
}

export default meta
type Story = StoryObj<typeof meta>

export const Default: Story = {
  render: (args) => ({
    components: { ConfirmModal },
    setup: () => ({ args }),
    template: `
      <ConfirmModal v-bind="args">
        Are you sure?
      </ConfirmModal>
    `,
  }),
}
