2023-11-13 23:30:22 +00:00
|
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
|
|
|
|
|
|
import FileUploader from "./FileUploader";
|
|
|
|
|
|
|
|
|
|
const meta: Meta<typeof FileUploader> = {
|
|
|
|
|
title: "Components/FileUploader",
|
|
|
|
|
component: FileUploader,
|
|
|
|
|
args: {
|
|
|
|
|
graphicName: "file-configuration-profile",
|
|
|
|
|
message: "The main message",
|
|
|
|
|
additionalInfo: "The additional message",
|
|
|
|
|
accept: ".pdf",
|
|
|
|
|
isLoading: false,
|
|
|
|
|
onFileUpload: () => {
|
2024-04-03 16:25:16 +00:00
|
|
|
alert("File uploaded!");
|
2023-11-13 23:30:22 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
|
|
|
|
|
type Story = StoryObj<typeof FileUploader>;
|
|
|
|
|
|
|
|
|
|
export const Basic: Story = {};
|