fleet/frontend/components/EmptyTable/EmptyTable.stories.tsx
Marko Lisica 8162d052bf
Icons improvements (making frontend consistent with Figma component library) (#14185)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Manual QA for all new/changed functionality

---------

Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
2023-10-31 16:06:38 +00:00

48 lines
964 B
TypeScript

import React from "react";
import type { Meta, StoryObj } from "@storybook/react";
import Button from "components/buttons/Button";
import EmptyTable from "./EmptyTable";
const meta: Meta<typeof EmptyTable> = {
title: "Components/EmptyTable",
component: EmptyTable,
argTypes: {
className: {
control: "text",
},
},
};
export default meta;
type Story = StoryObj<typeof EmptyTable>;
export const Basic: Story = {
args: {
header: "No Data",
info: "There is no data to display.",
graphicName: "empty-queries",
},
};
export const WithAdditionalInfo: Story = {
args: {
...Basic.args,
additionalInfo: "You can add additional info here.",
},
};
export const WithPrimaryButton: Story = {
args: {
...WithAdditionalInfo.args,
primaryButton: <Button>ok</Button>,
},
};
export const WithSecondaryButton: Story = {
args: {
...WithPrimaryButton.args,
secondaryButton: <Button>cancel</Button>,
},
};