import type { Meta, StoryObj } from '@storybook/react'
import { FileInput } from './FileInput'

const meta: Meta<typeof FileInput> = {
  title: 'Atoms/FileInput',
  component: FileInput,
  tags: ['autodocs'],
  parameters: { layout: 'padded' },
}

export default meta
type Story = StoryObj<typeof FileInput>

export const Default: Story = {
  args: {
    label: 'Upload document',
    description: 'Supported formats: PDF, DOCX, PNG',
  },
}

export const Multiple: Story = {
  args: {
    label: 'Upload files',
    multiple: true,
    accept: '.pdf,.docx,.png,.jpg',
  },
}

export const WithError: Story = {
  name: 'With error',
  args: {
    label: 'Upload evidence',
    error: 'File size must be under 10MB',
  },
}

export const Disabled: Story = {
  args: {
    label: 'Upload document',
    disabled: true,
  },
}
