aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page/page-footer.stories.tsx
blob: aee89798ffb306523b7909ffe2a9809421a36362 (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
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { Page } from './page';
import { PageFooter } from './page-footer';

/**
 * PageFooter - Storybook Meta
 */
export default {
  title: 'Templates/Page/Footer',
  component: PageFooter,
  argTypes: {
    readMoreAbout: {
      control: {
        type: null,
      },
      description: 'An array of page links.',
      type: {
        name: 'object',
        required: true,
        value: {},
      },
    },
  },
} as ComponentMeta<typeof PageFooter>;

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

/**
 * PageFooter Stories - Footer
 */
export const Footer = Template.bind({});
Footer.args = {
  readMoreAbout: [
    { id: 1, name: 'Topic 1', url: '#topic1' },
    { id: 2, name: 'Topic 2', url: '#topic2' },
  ],
};