import type { Meta, StoryObj } from "@storybook/preact";
import { ConfirmDialog } from "./ConfirmDialog";

const meta: Meta<typeof ConfirmDialog> = { title: "Global/ConfirmDialog", component: ConfirmDialog, parameters: { layout: "fullscreen" } };
export default meta;
type Story = StoryObj<typeof ConfirmDialog>;

export const Default: Story = {
  args: { title: "Delete record?", message: "This action cannot be undone. The record will be permanently removed.", onConfirm: () => {}, onCancel: () => {} },
};
export const Danger: Story = {
  args: { title: "Delete all data?", message: "This will permanently erase all records in this table.", confirmLabel: "Delete Everything", danger: true, onConfirm: () => {}, onCancel: () => {} },
};
