2024-08-20 13:57:59 +00:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
2024-08-21 15:14:40 +00:00
|
|
|
import { SpaceAllocation } from "../src/components/SpaceAllocation/SpaceAllocation";
|
2024-08-20 13:57:59 +00:00
|
|
|
|
|
|
|
const meta = {
|
|
|
|
title: "Advanced/SpaceAllocation",
|
|
|
|
component: SpaceAllocation,
|
|
|
|
parameters: {
|
|
|
|
layout: "centered",
|
|
|
|
},
|
|
|
|
tags: ["autodocs"],
|
|
|
|
argTypes: {},
|
|
|
|
} satisfies Meta<typeof SpaceAllocation>;
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
export const Default: Story = {
|
|
|
|
args: {
|
|
|
|
data: [
|
|
|
|
{
|
2024-09-20 13:34:07 +00:00
|
|
|
title: "Space allocated",
|
2024-08-20 13:57:59 +00:00
|
|
|
size: 10000000,
|
|
|
|
},
|
|
|
|
{
|
2024-09-20 13:34:07 +00:00
|
|
|
title: "New space allocation",
|
2024-08-20 13:57:59 +00:00
|
|
|
size: 10000000 * 0.2,
|
|
|
|
},
|
|
|
|
{
|
2024-09-20 13:34:07 +00:00
|
|
|
title: "Remaining space",
|
2024-08-20 13:57:59 +00:00
|
|
|
size: 10000000 * 0.2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|