import {Meta, StoryObj} from '@storybook/react';

import {FileCard} from './index';

const meta: Meta<typeof FileCard> = {
  title: 'HuGo/FileCard',
  component: FileCard,
  argTypes: {
    hasError: {control: 'boolean'},
    isUploading: {control: 'boolean'},
    name: {control: 'text'},
    size: {control: 'number'},
    url: {control: 'text'},
  },
};

type Story = StoryObj<typeof FileCard>;

export const FileCardComponent: Story = {
  args: {
    hasError: false,
    isUploading: false,
    onDeleteFile: () => {},
    onRetryUpload: () => {},
    onStopUpload: () => {},
    name: 'FileName.pdf',
    size: 105000000,
    url: undefined,
  },
};

export default meta;
