2023-11-29 16:07:24 +00:00
|
|
|
import React from "react";
|
2023-06-02 13:14:39 +00:00
|
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
|
|
2023-11-29 16:07:24 +00:00
|
|
|
import LastUpdatedText from "components/LastUpdatedText";
|
|
|
|
|
|
2023-06-02 13:14:39 +00:00
|
|
|
import SectionHeader from ".";
|
|
|
|
|
|
|
|
|
|
const meta: Meta<typeof SectionHeader> = {
|
|
|
|
|
title: "Components/SectionHeader",
|
|
|
|
|
component: SectionHeader,
|
|
|
|
|
args: { title: "Section header title" },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
|
|
|
|
|
type Story = StoryObj<typeof SectionHeader>;
|
|
|
|
|
|
|
|
|
|
export const Basic: Story = {};
|
2023-11-29 16:07:24 +00:00
|
|
|
|
|
|
|
|
export const WithSubTitle: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
subTitle: (
|
|
|
|
|
<LastUpdatedText
|
|
|
|
|
lastUpdatedAt={new Date().toISOString()}
|
2024-02-23 14:57:18 +00:00
|
|
|
whatToRetrieve="operating systems"
|
2023-11-29 16:07:24 +00:00
|
|
|
/>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
};
|