import type { Meta, StoryObj } from '@storybook/vue3-vite';
import OrderDeliveryLine from './OrderDeliveryLine.vue';

const meta: Meta<typeof OrderDeliveryLine> = {
  title: 'Orders/OrderDeliveryLine',
  component: OrderDeliveryLine,
};

export default meta;

type Story = StoryObj<typeof OrderDeliveryLine>;

export const Readonly: Story = {
  args: {
    deliveryAddress: 'г. Казань, ул. Магистральная, 14',
    deliveryTerms: 'Доставка до склада за 2-3 рабочих дня',
    deliveryFee: 3200,
  },
};

export const ManagerEditing: Story = {
  args: {
    mode: 'manager',
    canEdit: true,
    editingDeliveryTerms: true,
    editingDeliveryFee: true,
    deliveryAddress: 'г. Казань, ул. Магистральная, 14',
    deliveryTermsDraft: 'Доставка до склада за 2-3 рабочих дня',
    deliveryFeeDraft: '3200',
  },
};
