/* * 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 React from "react"; import { MemoryRouter } from "react-router-dom"; import { storiesOf } from "@storybook/react"; import CardColumnSmall from "./CardColumnSmall"; import Icon from "./Icon"; import styled from "styled-components"; const Wrapper = styled.div` margin: 2rem; max-width: 400px; `; const link = "/foo/bar"; const avatar = ; const contentLeft = main content; const contentRight = more text; storiesOf("CardColumnSmall", module) .addDecorator((story) => {story()}) .addDecorator((storyFn) => {storyFn()}) .add("Default", () => ( )) .add("Minimal", () => ) .add("Task", () => ( } contentLeft={Repository created} contentRight={over 42 years ago} footer="New: scmadmin/spaceship" /> )) .add("Linkless", () => ( } contentLeft={Repository deleted} contentRight={over 1337 minutes ago} footer="Deleted: scmadmin/spaceship" /> ));