aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/overview.stories.tsx
blob: 61d8b350de7e52aabafac2c477a46b3678f6e228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { ComponentMeta, ComponentStory } from '@storybook/react';
import OverviewComponent from './overview';

export default {
  title: 'Organisms/Layout',
  component: OverviewComponent,
  argTypes: {
    cover: {
      description: 'The overview cover.',
      type: {
        name: 'object',
        required: true,
        value: {},
      },
    },
    meta: {
      description: 'The overview metadata.',
      type: {
        name: 'object',
        required: true,
        value: {},
      },
    },
  },
} as ComponentMeta<typeof OverviewComponent>;

const Template: ComponentStory<typeof OverviewComponent> = (args) => (
  <OverviewComponent {...args} />
);

const cover = {
  alt: 'picture',
  height: 480,
  src: 'http://placeimg.com/640/480/cats',
  width: 640,
};

const meta = {
  publication: { name: 'Illo ut odio:', value: 'Sequi et excepturi' },
  update: {
    name: 'Perspiciatis vel laudantium:',
    value: 'Dignissimos ratione veritatis',
  },
};

export const Overview = Template.bind({});
Overview.args = {
  cover,
  meta,
};