import type { Story } from '@storybook/react';
import * as React from 'react';
import Link from '@govuk-react/link';
import { DocumentFooterMetadata } from '.';
const fromData = [Ministry of Defence];
const partOfData = [
Energy,
Environment,
];
const otherData = [
{
id: 0,
title: 'Consultation type',
content: Open,
},
{
id: 1,
title: 'Published',
content: '20 January 2012',
},
{
id: 2,
title: 'Date opened',
content: '1 February 2012',
},
{
id: 3,
title: 'Date closed',
content: '1 March 2013',
},
];
export default {
title: 'Typography/Document Footer Metadata',
id: 'document-footer-metadata',
component: DocumentFooterMetadata,
};
const Template: Story> = (args) => (
);
export const Default = Template.bind({});
Default.args = {
from: fromData,
};
export const DfmFromPartOfExample = Template.bind({});
DfmFromPartOfExample.args = {
from: fromData,
partOf: partOfData,
};
export const DfmFromOtherDataExample = Template.bind({});
DfmFromOtherDataExample.args = {
from: fromData,
other: otherData,
};