/* * Copyright (c) 2020 - present Cloudogu GmbH * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ // import * as React from "react"; // import { storiesOf } from "@storybook/react"; // import Help from "./Help"; // // const longContent = // "Cleverness nuclear genuine static irresponsibility invited President Zaphod\n" + // "Beeblebrox hyperspace ship. Another custard through computer-generated universe\n" + // "shapes field strong disaster parties Russell’s ancestors infinite colour\n" + // "imaginative generator sweep."; // // storiesOf("Help", module) // .addDecorator((storyFn) =>
{storyFn()}
) // .add("Default", () => ) // .add("Multiline", () => ( // <> //
// // //
//
// // //
// // )); import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import Help from "./Help"; const longContent = "Cleverness nuclear genuine static irresponsibility invited President Zaphod\n" + "Beeblebrox hyperspace ship. Another custard through computer-generated universe\n" + "shapes field strong disaster parties Russell’s ancestors infinite colour\n" + "imaginative generator sweep."; const meta: Meta = { title: "Components/Help", component: Help, decorators: [(Story) =>
{Story()}
], parameters: { layout: "centered", }, tags: ["autodocs"], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { message: "This is a help message", }, }; export const Multiline: Story = { args: { message: longContent, }, }; export const SingleLine: Story = { args: { message: longContent, multiline: false, }, };